Преглед изворни кода

@uppy/core: fix some types (#4332)

Antoine du Hamel пре 2 година
родитељ
комит
cb5c0ded6f
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      packages/@uppy/core/types/index.d.ts

+ 2 - 1
packages/@uppy/core/types/index.d.ts

@@ -108,7 +108,7 @@ export class UIPlugin<TOptions extends PluginOptions = DefaultPluginOptions> ext
   getTargetPlugin(target: PluginTarget): UIPlugin | undefined
 
   // eslint-disable-next-line no-use-before-define
-  mount(target: PluginTarget, plugin: typeof UIPlugin): void
+  mount(target: PluginTarget, plugin: UIPlugin): void
 
   render(state: Record<string, unknown>): void
 
@@ -126,6 +126,7 @@ export type PluginTarget =
   | Element
   | typeof BasePlugin
   | typeof UIPlugin
+  | BasePlugin
 
 export interface Locale<TNames extends string = string> {
   strings: LocaleStrings<TNames>