Skip to content

Commit

Permalink
fix(Modal): type-definition error (#4632)
Browse files Browse the repository at this point in the history
  • Loading branch information
ylc395 authored Sep 9, 2021
1 parent d2b7214 commit a4d907a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,20 @@ export interface ModalFuncProps {
prefixCls?: string;
class?: string;
visible?: boolean;
title?: () => VNodeTypes | VNodeTypes;
title?: (() => VNodeTypes) | VNodeTypes;
closable?: boolean;
content?: () => VNodeTypes | VNodeTypes;
content?: (() => VNodeTypes) | VNodeTypes;
// TODO: find out exact types
onOk?: (...args: any[]) => any;
onCancel?: (...args: any[]) => any;
okButtonProps?: ButtonPropsType;
cancelButtonProps?: ButtonPropsType;
centered?: boolean;
width?: string | number;
okText?: () => VNodeTypes | VNodeTypes;
okText?: (() => VNodeTypes) | VNodeTypes;
okType?: LegacyButtonType;
cancelText?: () => VNodeTypes | VNodeTypes;
icon?: () => VNodeTypes | VNodeTypes;
cancelText?: (() => VNodeTypes) | VNodeTypes;
icon?: (() => VNodeTypes) | VNodeTypes;
/* Deprecated */
iconType?: string;
mask?: boolean;
Expand Down

0 comments on commit a4d907a

Please sign in to comment.