Browse Source

@uppy/drop-target: change drop event type to DragEvent (#5107)

Alireza Heydari 1 năm trước cách đây
mục cha
commit
ba066491cd
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      packages/@uppy/drop-target/types/index.d.ts

+ 3 - 3
packages/@uppy/drop-target/types/index.d.ts

@@ -2,9 +2,9 @@ import type { PluginOptions, BasePlugin } from '@uppy/core'
 
 interface DropTargetOptions extends PluginOptions {
   target: string | Element
-  onDragOver?: (event: MouseEvent) => void
-  onDrop?: (event: MouseEvent) => void
-  onDragLeave?: (event: MouseEvent) => void
+  onDragOver?: (event: DragEvent) => void
+  onDrop?: (event: DragEvent) => void
+  onDragLeave?: (event: DragEvent) => void
 }
 
 declare class DropTarget extends BasePlugin<DropTargetOptions> {}