Pārlūkot izejas kodu

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

Alireza Heydari 1 gadu atpakaļ
vecāks
revīzija
ba066491cd
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  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> {}