Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 597 Bytes

es2018.promise.d.ts.md

File metadata and controls

19 lines (17 loc) · 597 Bytes

es2018.promise.d.ts Diffs

Index: es2018.promise.d.ts
===================================================================
--- es2018.promise.d.ts
+++ es2018.promise.d.ts
@@ -7,6 +7,8 @@
    * resolved value cannot be modified from the callback.
    * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
    * @returns A Promise for the completion of the callback.
    */
-  finally(onfinally?: (() => void) | undefined | null): Promise<T>;
+  finally<U>(
+    onfinally?: (() => U | PromiseLike<U>) | null | undefined,
+  ): Promise<T>;
 }