We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b263e6b commit 1a66849Copy full SHA for 1a66849
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 to allow TypeScript to 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