瀏覽代碼

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

Antoine du Hamel 1 年之前
父節點
當前提交
fdf47e5c8e
共有 1 個文件被更改,包括 4 次插入4 次删除
  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