Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
linxianxi committed Jun 7, 2023
1 parent d827b17 commit 9acc3c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import KeyCode from 'rc-util/lib/KeyCode';
import { warning } from 'rc-util/lib/warning';
import React, { useCallback, useContext, useEffect, useRef, useState } from 'react';
import getFixScaleEleTransPosition from './getFixScaleEleTransPosition';
import type { TransformType } from './hooks/useImageTransform';
import type { TransformAction, TransformType } from './hooks/useImageTransform';
import useImageTransform from './hooks/useImageTransform';
import Operations from './Operations';
import { BASE_SCALE_RATIO, WHEEL_MAX_SCALE_RATIO } from './previewConfig';
Expand Down Expand Up @@ -55,7 +55,7 @@ export interface PreviewProps extends Omit<IDialogPropTypes, 'onClose'> {
countRender?: (current: number, total: number) => string;
scaleStep?: number;
onClose?: (e: React.SyntheticEvent<Element>) => void;
onTransform?: (transform: TransformType) => void;
onTransform?: (transform: TransformType, action: TransformAction) => void;
toolbarRender?: (params: toolbarRenderType) => React.ReactNode;
}

Expand Down

0 comments on commit 9acc3c2

Please sign in to comment.