Skip to content

Commit

Permalink
fix rc-dialog tsd
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Sep 7, 2020
1 parent 51569b0 commit b9b3a0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Preview.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react';
import Dialog, { DialogProps as IDialogPropTypes } from 'rc-dialog';
import Dialog from 'rc-dialog';
import { IDialogPropTypes } from 'rc-dialog/lib/IDialogPropTypes';
import RotateLeftOutlined from '@ant-design/icons/RotateLeftOutlined';
import RotateRightOutlined from '@ant-design/icons/RotateRightOutlined';
import ZoomInOutlined from '@ant-design/icons/ZoomInOutlined';
Expand All @@ -15,7 +16,7 @@ import getFixScaleEleTransPosition from './getFixScaleEleTransPosition';
const { useState } = React;

interface PreviewProps extends Omit<IDialogPropTypes, 'onClose'> {
onClose?: (e: React.SyntheticEvent<HTMLDivElement | HTMLLIElement>) => any;
onClose?: (e: React.SyntheticEvent<HTMLDivElement | HTMLLIElement>) => void;
src?: string;
alt?: string;
}
Expand Down

0 comments on commit b9b3a0f

Please sign in to comment.