diff --git a/components/modal/Modal.tsx b/components/modal/Modal.tsx index db74db4df..09dbca361 100644 --- a/components/modal/Modal.tsx +++ b/components/modal/Modal.tsx @@ -95,9 +95,9 @@ 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; @@ -105,10 +105,10 @@ export interface ModalFuncProps { 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;