Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@uppy/drag-drop: refine type of private variables #5026

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading