From 003650d429c312298d2598a305b6d8de02b6651e Mon Sep 17 00:00:00 2001 From: michahell Date: Thu, 16 Aug 2018 16:41:40 +0200 Subject: [PATCH 1/3] expands parameter type of Office.mailbox.getCallbackTokenAsync() with { isRest: boolean } --- types/office-js/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index f9eb56c8f5..624e45fec1 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -13586,7 +13586,7 @@ declare namespace Office { * asyncContext: Any state data that is passed to the asynchronous method. * @param callback When the method completes, the function passed in the callback parameter is called with a single parameter of type AsyncResult. The token is provided as a string in the asyncResult.value property. */ - getCallbackTokenAsync(options: Office.AsyncContextOptions, callback: (result: AsyncResult) => void): void; + getCallbackTokenAsync(options: Office.AsyncContextOptions & { isRest: boolean }, callback: (result: AsyncResult) => void): void; /** * Gets a string that contains a token used to get an attachment or item from an Exchange Server. * @@ -60490,4 +60490,4 @@ declare namespace Visio { //////////////////////////////////////////////////////////////// ////////////////////// End PowerPoint APIs ///////////////////// -//////////////////////////////////////////////////////////////// \ No newline at end of file +//////////////////////////////////////////////////////////////// From 165bdb88406525d73af3c052f6a9195eb87e4af1 Mon Sep 17 00:00:00 2001 From: michahell Date: Thu, 16 Aug 2018 16:59:31 +0200 Subject: [PATCH 2/3] changes getCallbackTokenAsync parameter union type... type to `|` iso `&` --- types/office-js/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 624e45fec1..10e8412382 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -13586,7 +13586,7 @@ declare namespace Office { * asyncContext: Any state data that is passed to the asynchronous method. * @param callback When the method completes, the function passed in the callback parameter is called with a single parameter of type AsyncResult. The token is provided as a string in the asyncResult.value property. */ - getCallbackTokenAsync(options: Office.AsyncContextOptions & { isRest: boolean }, callback: (result: AsyncResult) => void): void; + getCallbackTokenAsync(options: Office.AsyncContextOptions | { isRest: boolean }, callback: (result: AsyncResult) => void): void; /** * Gets a string that contains a token used to get an attachment or item from an Exchange Server. * From 22b493043c6fb617245aff813a91271123e516be Mon Sep 17 00:00:00 2001 From: michahell Date: Fri, 17 Aug 2018 17:04:08 +0200 Subject: [PATCH 3/3] changes isRest parameter to union type `&` and optional `isRest?: boolean` argument --- types/office-js/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 10e8412382..b99714b1fd 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -13586,7 +13586,7 @@ declare namespace Office { * asyncContext: Any state data that is passed to the asynchronous method. * @param callback When the method completes, the function passed in the callback parameter is called with a single parameter of type AsyncResult. The token is provided as a string in the asyncResult.value property. */ - getCallbackTokenAsync(options: Office.AsyncContextOptions | { isRest: boolean }, callback: (result: AsyncResult) => void): void; + getCallbackTokenAsync(options: Office.AsyncContextOptions & { isRest?: boolean }, callback: (result: AsyncResult) => void): void; /** * Gets a string that contains a token used to get an attachment or item from an Exchange Server. *