diff --git a/types/winrt-uwp/index.d.ts b/types/winrt-uwp/index.d.ts index 348ca65c55..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; @@ -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. */