Skip to content

Commit 79b9f15

Browse files
authored
TS: Add option param to onModalClose type (#166, #140)
1 parent 844f2aa commit 79b9f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ interface IModalSelectorProps<TOption> {
4949
*
5050
* Default is `() => {}`
5151
*/
52-
onModalClose?: () => void;
52+
onModalClose?: (option: TOption) => void;
5353

5454
/**
5555
* Extract the key from the data item

0 commit comments

Comments
 (0)