mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
Correct typings for change handlers
This commit is contained in:
parent
26a6d0382b
commit
18183ac2d5
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user