mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Merge pull request #3483 from Igorbek/promises-a-plus
Improved Promises A+ definitions (for TS 1.4)
This commit is contained in:
commit
56068d3354
7
promises-a-plus/promises-a-plus.d.ts
vendored
7
promises-a-plus/promises-a-plus.d.ts
vendored
@ -12,10 +12,7 @@ declare module PromisesAPlus {
|
||||
new <T>(resolver: (resolvePromise: (value: T) => void, rejectPromise: (reason: any) => void) => void): Thenable<T>;
|
||||
}
|
||||
|
||||
interface Thenable<R> {
|
||||
then<U>(onFulfill: (value: R) => Thenable<U>, onReject: (error: any) => Thenable<U>): Thenable<U>;
|
||||
then<U>(onFulfill: (value: R) => Thenable<U>, onReject?: (error: any) => U): Thenable<U>;
|
||||
then<U>(onFulfill: (value: R) => U, onReject: (error: any) => Thenable<U>): Thenable<U>;
|
||||
then<U>(onFulfill?: (value: R) => U, onReject?: (error: any) => U): Thenable<U>;
|
||||
interface Thenable<T> {
|
||||
then<R>(onFulfill?: (value: T) => Thenable<R>|R, onReject?: (error: any) => Thenable<R>|R): Thenable<R>;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user