Skip to content

Commit

Permalink
@uppy/drag-drop: refine type of private variables (#5026)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Mar 26, 2024
1 parent 0c10dda commit 3623ed9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@uppy/drag-drop/src/DragDrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export default class DragDrop<M extends Meta, B extends Body> extends UIPlugin<
// Check for browser dragDrop support
private isDragDropSupported = isDragDropSupported()

private removeDragOverClassTimeout: ReturnType<typeof setTimeout>
private removeDragOverClassTimeout!: ReturnType<typeof setTimeout>

private fileInputRef: HTMLInputElement
private fileInputRef!: HTMLInputElement

constructor(uppy: Uppy<M, B>, opts?: DragDropOptions) {
super(uppy, {
Expand Down Expand Up @@ -79,7 +79,7 @@ export default class DragDrop<M extends Meta, B extends Body> extends UIPlugin<
try {
this.uppy.addFiles(descriptors)
} catch (err) {
this.uppy.log(err)
this.uppy.log(err as any)
}
}

Expand Down

0 comments on commit 3623ed9

Please sign in to comment.