mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-01 19:45:48 +08:00
Merge pull request #25902 from kalmi/patch-1
[react-aria-menubutton] onSelection is optional since 5.1.1
This commit is contained in:
4
types/react-aria-menubutton/index.d.ts
vendored
4
types/react-aria-menubutton/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for react-aria-menubutton 5.0
|
||||
// Type definitions for react-aria-menubutton 5.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