@@ -3,7 +3,7 @@ import ErrorWithCause from '@uppy/utils/lib/ErrorWithCause'
3
3
import { RateLimitedQueue } from '@uppy/utils/lib/RateLimitedQueue'
4
4
import BasePlugin from '@uppy/core/lib/BasePlugin.js'
5
5
import type { DefinePluginOpts , PluginOpts } from '@uppy/core/lib/BasePlugin.js'
6
- import Tus , { type TusDetailedError } from '@uppy/tus'
6
+ import Tus , { type TusDetailedError , type TusOpts } from '@uppy/tus'
7
7
import type { Body , Meta , UppyFile } from '@uppy/utils/lib/UppyFile'
8
8
import type { Uppy } from '@uppy/core'
9
9
import Assembly from './Assembly.ts'
@@ -219,7 +219,7 @@ declare module '@uppy/utils/lib/UppyFile' {
219
219
// eslint-disable-next-line no-shadow, @typescript-eslint/no-unused-vars
220
220
export interface UppyFile < M extends Meta , B extends Body > {
221
221
transloadit ?: { assembly : string }
222
- tus ?: { uploadUrl ?: string | null }
222
+ tus ?: TusOpts < M , B >
223
223
}
224
224
}
225
225
@@ -936,7 +936,6 @@ export default class Transloadit<
936
936
this . uppy . on ( 'upload-success' , this . #onFileUploadURLAvailable)
937
937
} else {
938
938
// we don't need it here.
939
- // @ts -expect-error `endpoint` is required but we first have to fetch
940
939
// the regional endpoint from the Transloadit API before we can set it.
941
940
this . uppy . use ( Tus , {
942
941
// Disable tus-js-client fingerprinting, otherwise uploading the same file at different times
0 commit comments