diff --git a/types/react-aria-menubutton/index.d.ts b/types/react-aria-menubutton/index.d.ts index 52a77e7435..6866719f3c 100644 --- a/types/react-aria-menubutton/index.d.ts +++ b/types/react-aria-menubutton/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-aria-menubutton 5.0 +// Type definitions for react-aria-menubutton 5.1.1 // Project: https://github.com/davidtheclark/react-aria-menubutton // Definitions by: Muhammad Fawwaz Orabi // Chris Rohlfs @@ -19,7 +19,7 @@ export interface WrapperProps * It will be passed the value of the selected `MenuItem` and * the React `SyntheticEvent`. */ - onSelection(value: any, event: React.SyntheticEvent): any; + onSelection?(value: any, event: React.SyntheticEvent): any; /** * A callback to run when the menu is opened or closed.