@uppy/core: refine type of private variables (#5028)

This commit is contained in:
Antoine du Hamel 2024-03-26 22:59:27 +01:00 committed by GitHub
parent 203d9a43de
commit fdf47e5c8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,15 +45,15 @@ class UIPlugin<
B extends Body,
PluginState extends Record<string, unknown> = Record<string, unknown>,
> extends BasePlugin<Opts, M, B, PluginState> {
#updateUI: (state: Partial<State<M, B>>) => void
#updateUI!: (state: Partial<State<M, B>>) => void
isTargetDOMEl: boolean
isTargetDOMEl!: boolean
el: HTMLElement | null
el!: HTMLElement | null
parent: unknown
title: string
title!: string
getTargetPlugin<Me extends Meta, Bo extends Body>(
target: PluginTarget<Me, Bo>, // eslint-disable-line no-use-before-define