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/dashboard: refine type of private variables #5027

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
18 changes: 9 additions & 9 deletions packages/@uppy/dashboard/src/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,30 +240,30 @@ export default class Dashboard<M extends Meta, B extends Body> extends UIPlugin<
> {
static VERSION = packageJson.version

#disabledNodes: HTMLElement[] | null
#disabledNodes!: HTMLElement[] | null

private modalName = `uppy-Dashboard-${nanoid()}`

private superFocus = createSuperFocus()

private ifFocusedOnUppyRecently = false

private dashboardIsDisabled: boolean
private dashboardIsDisabled!: boolean

private savedScrollPosition: number
private savedScrollPosition!: number

private savedActiveElement: HTMLElement
private savedActiveElement!: HTMLElement

private resizeObserver: ResizeObserver
private resizeObserver!: ResizeObserver

private darkModeMediaQuery: MediaQueryList | null
private darkModeMediaQuery!: MediaQueryList | null

// Timeouts
private makeDashboardInsidesVisibleAnywayTimeout: ReturnType<
private makeDashboardInsidesVisibleAnywayTimeout!: ReturnType<
typeof setTimeout
>

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

constructor(uppy: Uppy<M, B>, opts?: DashboardOptions<M, B>) {
// support for the legacy `autoOpenFileEditor` option,
Expand Down Expand Up @@ -600,7 +600,7 @@ export default class Dashboard<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