mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
[react-aria-menubutton] onSelection is optional since 5.1.1
no other api changes since 5.0 according to the project's change log
This commit is contained in:
+2
-2
@@ -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 <https://github.com/forabi>
|
||||
// Chris Rohlfs <https://github.com/crohlfs>
|
||||
@@ -19,7 +19,7 @@ export interface WrapperProps<T extends HTMLElement>
|
||||
* It will be passed the value of the selected `MenuItem` and
|
||||
* the React `SyntheticEvent`.
|
||||
*/
|
||||
onSelection(value: any, event: React.SyntheticEvent<T>): any;
|
||||
onSelection?(value: any, event: React.SyntheticEvent<T>): any;
|
||||
|
||||
/**
|
||||
* A callback to run when the menu is opened or closed.
|
||||
|
||||
Reference in New Issue
Block a user