Merge pull request #17502 from ant-design/fix/fix-switch-type

fix: fix type of SwitchProps
This commit is contained in:
偏右 2019-07-06 22:18:05 +08:00 committed by GitHub
commit b9ffa8a720
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ export interface SwitchProps {
checked?: boolean;
defaultChecked?: boolean;
onChange?: SwitchChangeEventHandler;
onClick?: SwitchChangeEventHandler;
onClick?: SwitchClickEventHandler;
checkedChildren?: React.ReactNode;
unCheckedChildren?: React.ReactNode;
disabled?: boolean;