Skip to content

Commit

Permalink
@uppy/transloadit: fix strict type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Jun 21, 2024
1 parent 521d903 commit 4185480
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/@uppy/transloadit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ export default class Transloadit<

client: Client<M, B>

assembly: Assembly | null
assembly?: Assembly

#watcher: AssemblyWatcher<M, B>
#watcher!: AssemblyWatcher<M, B>

completedFiles: Record<string, boolean>

Expand Down Expand Up @@ -799,7 +799,7 @@ export default class Transloadit<
const assembly =
// this.assembly can already be defined if we recovered files with Golden Retriever (this.#onRestored)
(this.assembly ??
(await this.#createAssembly(fileIDs, assemblyOptions))) as Assembly
(await this.#createAssembly(fileIDs, assemblyOptions)))!
if (this.opts.importFromUploadURLs) {
await this.#reserveFiles(assembly, fileIDs)
}
Expand Down Expand Up @@ -882,7 +882,7 @@ export default class Transloadit<

#onError = (err: { name: string; message: string; details?: string }) => {
this.#closeAssemblyIfExists()
this.assembly = null
this.assembly = undefined

this.client
.submitError(err)
Expand Down

0 comments on commit 4185480

Please sign in to comment.