Skip to content

Commit 1c638f4

Browse files
Chris Bobbechrisbobbe
Chris Bobbe
authored andcommitted
apple-auth libdef: Allow onPress to return Promise<void>
The example in the doc at https://docs.expo.io/versions/latest/sdk/apple-authentication/#usage has this return type for `onPress`, and we want it too. Omitting `Promise<void>` doesn't seem to be well-considered.
1 parent c7d982e commit 1c638f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow-typed/expo-apple-authentication_vx.x.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ declare module 'expo-apple-authentication/build/AppleAuthentication' {
4040

4141
declare module 'expo-apple-authentication/build/AppleAuthentication.types' {
4242
declare export type AppleAuthenticationButtonProps = {
43-
onPress: () => void,
43+
onPress: () => void | Promise<void>,
4444
buttonType: $Values<typeof AppleAuthenticationButtonType>,
4545
buttonStyle: $Values<typeof AppleAuthenticationButtonStyle>,
4646
cornerRadius?: number,

0 commit comments

Comments
 (0)