mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
when.d.ts - add ability to return primitive from catch callback
This commit is contained in:
Vendored
+1
-1
@@ -174,7 +174,7 @@ declare module When {
|
||||
|
||||
// Make sure you test any usage of these overloads, exceptionType must
|
||||
// be a constructor with prototype set to an instance of Error.
|
||||
catch<U>(exceptionType: any, onRejected?: (reason: any) => Promise<U>): Promise<U>;
|
||||
catch<U>(exceptionType: any, onRejected?: (reason: any) => U | Promise<U>): Promise<U>;
|
||||
|
||||
finally(onFulfilledOrRejected: Function): Promise<T>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user