Skip to content

Commit 46d7471

Browse files
authored
Correct type definition for Upload#terminate (#217)
inconsistency between typescript typing and function definition
1 parent d3695e5 commit 46d7471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class Upload {
1111
options: UploadOptions;
1212
url: string | null;
1313

14-
static terminate(url: string, options?: UploadOptions, callback?: (error?: Error) => void): void;
14+
static terminate(url: string, options?: UploadOptions): Promise<void>;
1515
start(): void;
1616
abort(shouldTerminate?: boolean): Promise<void>;
1717
findPreviousUploads(): Promise<PreviousUpload[]>;

0 commit comments

Comments
 (0)