-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* main: MetaEditor + ImageEditor - new state machine logic (#4939) meta: disable `@typescript-eslint/no-non-null-assertion` lint rule (#4945) remove unnecessary `'use strict'` directives (#4943) @uppy/companion-client: type changes for provider-views (#4938) meta: bump ip from 1.1.8 to 1.1.9 (#4941) @uppy/companion-client: update types (#4927) Release: uppy@3.22.1 (#4935) update vi_VN translation (#4930) bump `@transloadit/prettier-bytes` (#4933) Release: uppy@3.22.0 (#4929) update `UppyFile` objects before emitting events (#4928) @uppy/transloadit: add `clientName` option (#4920) Fix broken previews after cropping (#4926) @uppy/compressor: upgrade compressorjs (#4924) Fix companion dns and allow redirects from http->https again (#4895) autoOpenFileEditor - rename "Edit file" to "Edit image" (#4925)
- Loading branch information
Showing
134 changed files
with
1,135 additions
and
537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.