Skip to content

Commit

Permalink
Merge pull request #34 from kr4chinin/patch-2
Browse files Browse the repository at this point in the history
Remove unused Size interface, fix DragResizeProps typization
  • Loading branch information
ahwgs authored May 26, 2024
2 parents 66a6676 + 6417148 commit 33cf75e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/drag-resize/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { usePersistFn } from 'ahooks';
import { observer } from 'mobx-react-lite';
import AutoScroller from './AutoScroller';

interface Size {}
interface DragResizeProps extends React.HTMLProps<HTMLDivElement> {
interface DragResizeProps extends Omit<HTMLProps<HTMLDivElement>, 'onResize'> {
onResize: ({ width, x }: { width: number; x: number }) => void;
/* 拖拽前的size */
onResizeEnd?: ({ width, x }: { width: number; x: number }) => void;
Expand Down

0 comments on commit 33cf75e

Please sign in to comment.