diff --git a/change/@fluentui-react-native-interactive-hooks-64f19ae6-d192-4452-94ed-d64cdd010403.json b/change/@fluentui-react-native-interactive-hooks-64f19ae6-d192-4452-94ed-d64cdd010403.json new file mode 100644 index 0000000000..cfe779efee --- /dev/null +++ b/change/@fluentui-react-native-interactive-hooks-64f19ae6-d192-4452-94ed-d64cdd010403.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "[useKeyEvent] Make event parameter non optional", + "packageName": "@fluentui-react-native/interactive-hooks", + "email": "saadnajmi2@gmail.com", + "dependentChangeType": "patch" +} diff --git a/packages/utils/interactive-hooks/src/useKeyProps.types.ts b/packages/utils/interactive-hooks/src/useKeyProps.types.ts index 305af2cc5b..42c780d9d3 100644 --- a/packages/utils/interactive-hooks/src/useKeyProps.types.ts +++ b/packages/utils/interactive-hooks/src/useKeyProps.types.ts @@ -2,7 +2,7 @@ import type { NativeSyntheticEvent } from 'react-native'; export type KeyPressEvent = NativeSyntheticEvent; -export type KeyCallback = (e?: KeyPressEvent) => void; +export type KeyCallback = (e: KeyPressEvent) => void; export type KeyPressProps = { onKeyDown?: KeyCallback;