Blame view

天文台pc/tianwentai-ui/node_modules/react-dnd/dist/hooks/useDrop/DropTargetImpl.d.ts 449 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
  import type { DropTarget } from 'dnd-core';
  import type { DropTargetMonitor } from '../../types/index.js';
  import type { DropTargetHookSpec } from '../types.js';
  export declare class DropTargetImpl<O, R, P> implements DropTarget {
      spec: DropTargetHookSpec<O, R, P>;
      private monitor;
      constructor(spec: DropTargetHookSpec<O, R, P>, monitor: DropTargetMonitor<O, R>);
      canDrop(): boolean;
      hover(): void;
      drop(): R | undefined;
  }