Skip to content

Commit

Permalink
TS: Add option param to onModalClose type (#166, #140)
Browse files Browse the repository at this point in the history
  • Loading branch information
scousino authored Jul 26, 2021
1 parent 844f2aa commit 79b9f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ interface IModalSelectorProps<TOption> {
*
* Default is `() => {}`
*/
onModalClose?: () => void;
onModalClose?: (option: TOption) => void;

/**
* Extract the key from the data item
Expand Down

0 comments on commit 79b9f15

Please sign in to comment.