We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b263e6b commit b46d974Copy full SHA for b46d974
src/storage/task.ts
@@ -497,6 +497,8 @@ export class UploadTask {
497
* @param onRejected The rejection callback.
498
*/
499
then<U>(onFulfilled?: ((value: UploadTaskSnapshot) => U | PromiseLike<U>) | null, onRejected?: ((error: any) => U | PromiseLike<U>) | null): Promise<U> {
500
+ // These casts are needed so that TypeScript can infer the types of the
501
+ // resulting Promise.
502
return this.promise_.then<U>(
503
(onFulfilled as (value: UploadTaskSnapshot) => U | PromiseLike<U>),
504
(onRejected as ((error: any) => PromiseLike<never>) | null));
0 commit comments