Skip to content

Commit 99eeefc

Browse files
imhelezombieJ
authored andcommitted
correct type in Switch (ant-design#14727)
1 parent 6cdc203 commit 99eeefc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: components/switch/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export interface SwitchProps {
1313
className?: string;
1414
checked?: boolean;
1515
defaultChecked?: boolean;
16-
onChange?: (checked: boolean) => any;
16+
onChange?: (checked: boolean, event: MouseEvent) => any;
17+
onClick?: (checked: boolean, event: MouseEvent) => any;
1718
checkedChildren?: React.ReactNode;
1819
unCheckedChildren?: React.ReactNode;
1920
disabled?: boolean;

0 commit comments

Comments
 (0)