Sfoglia il codice sorgente

@uppy/core: fix types (#4072)

Antoine du Hamel 2 anni fa
parent
commit
c59e61c2de
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      packages/@uppy/core/types/index.d.ts

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

@@ -360,8 +360,8 @@ export class Uppy {
 
   getID(): string
 
-  use<TOptions, TInstance extends UIPlugin | BasePlugin>(
-    pluginClass: new (uppy: this, opts: TOptions) => TInstance,
+  use<TOptions extends PluginOptions, TInstance extends UIPlugin | BasePlugin<TOptions>>(
+    pluginClass: new (uppy: this, opts?: TOptions) => TInstance,
     opts?: TOptions
   ): this