Browse Source

@uppy/transloadit: do not mark `opts` as mandatory (#5375)

Antoine du Hamel 9 months ago
parent
commit
0fd8065418
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/@uppy/transloadit/src/index.ts

+ 1 - 1
packages/@uppy/transloadit/src/index.ts

@@ -283,7 +283,7 @@ export default class Transloadit<
 
   restored: Promise<void> | null = null
 
-  constructor(uppy: Uppy<M, B>, opts: TransloaditOptions<M, B>) {
+  constructor(uppy: Uppy<M, B>, opts?: TransloaditOptions<M, B>) {
     super(uppy, { ...defaultOptions, ...opts })
     this.type = 'uploader'
     this.id = this.opts.id || 'Transloadit'