Browse Source

@uppy/core: fix types (#4072)

Antoine du Hamel 2 years ago
parent
commit
c59e61c2de
1 changed files with 2 additions and 2 deletions
  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