mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
tus-js-client: fix fingerprint type
This commit is contained in:
parent
36a32d8a72
commit
e6ad724857
2
types/tus-js-client/index.d.ts
vendored
2
types/tus-js-client/index.d.ts
vendored
@ -6,7 +6,7 @@
|
||||
|
||||
export interface UploadOptions {
|
||||
endpoint: string;
|
||||
fingerprint?: string;
|
||||
fingerprint?: (file: File, options?: UploadOptions) => string;
|
||||
resume?: boolean;
|
||||
metadata?: { [key: string]: string };
|
||||
onProgress?: ((bytesSent: number, bytesTotal: number) => void) | null;
|
||||
|
||||
@ -10,7 +10,7 @@ const file = new File(["foo"], "foo.txt", {
|
||||
|
||||
const upload = new Tus.Upload(file, {
|
||||
endpoint: "",
|
||||
fingerprint: "fingerprint",
|
||||
fingerprint: (file: File) => file.name,
|
||||
resume: true,
|
||||
metadata: {
|
||||
filename: "foo.txt"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user