Procházet zdrojové kódy

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

Antoine du Hamel před 1 rokem
rodič
revize
fdf47e5c8e
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      packages/@uppy/core/src/UIPlugin.ts

+ 4 - 4
packages/@uppy/core/src/UIPlugin.ts

@@ -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