mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
meta: update more dependencies (#5171)
This commit is contained in:
parent
928eff7c58
commit
0697f75b7c
14 changed files with 684 additions and 466 deletions
|
|
@ -1,36 +0,0 @@
|
|||
diff --git a/lib/index.d.ts b/lib/index.d.ts
|
||||
index 7a4efead6df94263db77b12c72ddaeafaeaa406c..e47e63f1159f19dd780986f7e33ffdd70bfdc371 100644
|
||||
--- a/lib/index.d.ts
|
||||
+++ b/lib/index.d.ts
|
||||
@@ -2,7 +2,12 @@
|
||||
|
||||
export const isSupported: boolean
|
||||
export const canStoreURLs: boolean
|
||||
-export const defaultOptions: UploadOptions
|
||||
+export const defaultOptions: UploadOptions & Required<Pick<UploadOptions,
|
||||
+| 'httpStack'
|
||||
+| 'fileReader'
|
||||
+| 'urlStorage'
|
||||
+| 'fingerprint'
|
||||
+>>
|
||||
|
||||
// TODO: Consider using { read: () => Promise<{ done: boolean; value?: any; }>; } as type
|
||||
export class Upload {
|
||||
@@ -12,7 +17,7 @@ export class Upload {
|
||||
options: UploadOptions
|
||||
url: string | null
|
||||
|
||||
- static terminate(url: string, options?: UploadOptions): Promise<void>
|
||||
+ static terminate(url: string, options: UploadOptions): Promise<void>
|
||||
start(): void
|
||||
abort(shouldTerminate?: boolean): Promise<void>
|
||||
findPreviousUploads(): Promise<PreviousUpload[]>
|
||||
@@ -25,7 +30,7 @@ interface UploadOptions {
|
||||
|
||||
uploadUrl?: string | null
|
||||
metadata?: { [key: string]: string }
|
||||
- fingerprint?: (file: File, options?: UploadOptions) => Promise<string>
|
||||
+ fingerprint?: (file: File, options: UploadOptions) => Promise<string>
|
||||
uploadSize?: number | null
|
||||
|
||||
onProgress?: ((bytesSent: number, bytesTotal: number) => void) | null
|
||||
Loading…
Add table
Add a link
Reference in a new issue