mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-03 06:27:46 +08:00
making IPromise compatible with ES6 PromiseLike
This commit is contained in:
2
types/winrt-uwp/index.d.ts
vendored
2
types/winrt-uwp/index.d.ts
vendored
@@ -20,7 +20,7 @@ declare namespace Windows {
|
||||
}
|
||||
|
||||
declare namespace Windows.Foundation {
|
||||
interface IPromise<TResult> {
|
||||
interface IPromise<TResult> extends PromiseLike<TResult> {
|
||||
then<U>(success?: (value: TResult) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>;
|
||||
then<U>(success?: (value: TResult) => IPromise<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>;
|
||||
then<U>(success?: (value: TResult) => U, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>;
|
||||
|
||||
Reference in New Issue
Block a user