Correct typings for change handlers

This commit is contained in:
Konrad Machlowski 2018-12-28 18:57:03 +13:00 committed by 偏右
parent 26a6d0382b
commit 18183ac2d5
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ type Placement = (typeof Placements)[number];
export interface DropDownProps {
trigger?: ('click' | 'hover' | 'contextMenu')[];
overlay: React.ReactNode;
onVisibleChange?: (visible?: boolean) => void;
onVisibleChange?: (visible: boolean) => void;
visible?: boolean;
disabled?: boolean;
align?: Object;

View File

@ -16,7 +16,7 @@ export interface InputNumberProps
step?: number | string;
defaultValue?: number;
tabIndex?: number;
onChange?: (value: number | string | undefined) => void;
onChange?: (value: number | undefined) => void;
disabled?: boolean;
size?: 'large' | 'small' | 'default';
formatter?: (value: number | string | undefined) => string;

View File

@ -17,7 +17,7 @@ export interface PopconfirmProps extends AbstractTooltipProps {
okButtonProps?: NativeButtonProps;
cancelButtonProps?: NativeButtonProps;
icon?: React.ReactNode;
onVisibleChange?: (visible?: boolean, e?: React.MouseEvent<any>) => void;
onVisibleChange?: (visible: boolean, e?: React.MouseEvent<any>) => void;
}
export interface PopconfirmState {