mirror of
https://github.com/expo/react-native-action-sheet.git
synced 2026-11-14 19:11:42 -10:00
fix: use correct callback type allowing for undefined i (#239)
This commit is contained in:
1 parent
4d8ed00b66
commit
b54b9f16c2
1 file changed
+1
-1
+1
-1
@@ -4,7 +4,7 @@ import { TextStyle, ViewStyle } from 'react-native';
|
||||
export interface ActionSheetProps {
|
||||
showActionSheetWithOptions: (
|
||||
options: ActionSheetOptions,
|
||||
callback: (i: number) => void | Promise<void>
|
||||
callback: (i?: number) => void | Promise<void>
|
||||
) => void;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user