Skip to content

Commit f1478dc

Browse files
committed
fix ts types
1 parent 42d905d commit f1478dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/IDialogPropTypes.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type IDialogPropTypes = {
1616
mousePosition?: {
1717
x: number;
1818
y: number;
19-
};
19+
} | null;
2020
title?: ReactNode;
2121
footer?: ReactNode;
2222
transitionName?: string;
@@ -28,8 +28,8 @@ export type IDialogPropTypes = {
2828
maskStyle?: Record<string, any>;
2929
prefixCls?: string;
3030
wrapClassName?: string;
31-
width?: number;
32-
height?: number;
31+
width?: string | number;
32+
height?: string | number;
3333
zIndex?: number;
3434
bodyProps?: any;
3535
maskProps?: any;
@@ -41,4 +41,4 @@ export type IDialogPropTypes = {
4141
// https://github.com/ant-design/ant-design/issues/19771
4242
// https://github.com/react-component/dialog/issues/95
4343
focusTriggerAfterClose?: boolean;
44-
}
44+
};

0 commit comments

Comments
 (0)