making IPromise compatible with ES6 PromiseLike

This commit is contained in:
Kewei Li
2017-11-10 16:46:38 -08:00
parent 80ba4dd265
commit effa795f85

View File

@@ -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>;