From 3623ed9da438c8d239d61b947ce9bc42315a46ba Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 26 Mar 2024 22:56:13 +0100 Subject: [PATCH] @uppy/drag-drop: refine type of private variables (#5026) --- packages/@uppy/drag-drop/src/DragDrop.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@uppy/drag-drop/src/DragDrop.tsx b/packages/@uppy/drag-drop/src/DragDrop.tsx index a04ca85953..d53381d140 100644 --- a/packages/@uppy/drag-drop/src/DragDrop.tsx +++ b/packages/@uppy/drag-drop/src/DragDrop.tsx @@ -45,9 +45,9 @@ export default class DragDrop extends UIPlugin< // Check for browser dragDrop support private isDragDropSupported = isDragDropSupported() - private removeDragOverClassTimeout: ReturnType + private removeDragOverClassTimeout!: ReturnType - private fileInputRef: HTMLInputElement + private fileInputRef!: HTMLInputElement constructor(uppy: Uppy, opts?: DragDropOptions) { super(uppy, { @@ -79,7 +79,7 @@ export default class DragDrop extends UIPlugin< try { this.uppy.addFiles(descriptors) } catch (err) { - this.uppy.log(err) + this.uppy.log(err as any) } }