Skip to content

Commit 3dc505a

Browse files
fix: Mark OpenReturn and ShareSingleReturn flow types as inexact (#983)
With `exact_by_default=true` we get flow errors because `OpenReturn` and `ShareSingleReturn` are implicitly inexact. This PR marks them explicitly inexact. Co-authored-by: Mateus Andrade <[email protected]>
1 parent 9020f19 commit 3dc505a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ type ActivityItemSource = {
156156
linkMetadata?: LinkMetadata,
157157
};
158158

159-
type OpenReturn = { app?: string, dismissedAction?: boolean };
160-
type ShareSingleReturn = { message: string, isInstalled?: boolean };
159+
type OpenReturn = { app?: string, dismissedAction?: boolean, ... };
160+
type ShareSingleReturn = { message: string, isInstalled?: boolean, ... };
161161

162162
const requireAndAskPermissions = async (options: Options | MultipleOptions): Promise<any> => {
163163
if ((options.url || options.urls) && Platform.OS === 'android') {

0 commit comments

Comments
 (0)