From 80ba4dd2650bb3c841c3123ee9f49f345c29f6b4 Mon Sep 17 00:00:00 2001 From: Kewei Li Date: Fri, 10 Nov 2017 16:21:08 -0800 Subject: [PATCH 1/2] forgot a static method --- types/winrt-uwp/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/winrt-uwp/index.d.ts b/types/winrt-uwp/index.d.ts index 348ca65c55..2e1eb9391d 100644 --- a/types/winrt-uwp/index.d.ts +++ b/types/winrt-uwp/index.d.ts @@ -49396,7 +49396,7 @@ declare namespace Windows { * @param parametersAsJson A JSON-formatted string that contains the arguments to pass to the request. * @return An asynchronous operation that, on successful completion, returns a StoreSendRequestResult object that provides status and error info about the request. */ - sendRequestAsync(context: StoreContext, requestKind: number, parametersAsJson: string): Windows.Foundation.IPromiseWithIAsyncOperation; + static sendRequestAsync(context: StoreContext, requestKind: number, parametersAsJson: string): Windows.Foundation.IPromiseWithIAsyncOperation; } /** Provides response data for a request that is sent to the Windows Store. */ From effa795f85687dc303b3787b32e65f447dd938f1 Mon Sep 17 00:00:00 2001 From: Kewei Li Date: Fri, 10 Nov 2017 16:46:38 -0800 Subject: [PATCH 2/2] making IPromise compatible with ES6 PromiseLike --- types/winrt-uwp/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/winrt-uwp/index.d.ts b/types/winrt-uwp/index.d.ts index 2e1eb9391d..6e0a460e33 100644 --- a/types/winrt-uwp/index.d.ts +++ b/types/winrt-uwp/index.d.ts @@ -20,7 +20,7 @@ declare namespace Windows { } declare namespace Windows.Foundation { - interface IPromise { + interface IPromise extends PromiseLike { then(success?: (value: TResult) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; then(success?: (value: TResult) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; then(success?: (value: TResult) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise;