From 5b015186ae4322e6ab30608969eb94a166430d12 Mon Sep 17 00:00:00 2001 From: Ricky Kirkham Date: Sun, 28 Oct 2018 21:40:03 -0700 Subject: [PATCH 1/3] office-js: correct messageParent param description --- 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 bd2ff1fbe0..999e1c2b5c 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -1070,9 +1070,9 @@ declare namespace Office { displayDialogAsync(startAddress: string, options?: DialogOptions, callback?: (result: AsyncResult) => void): void; /** * Delivers a message from the dialog box to its parent/opener page. The page calling this API must be on the same domain as the parent. - * @param messageObject Accepts a message from the dialog to deliver to the add-in. + * @param message Accepts a message from the dialog to deliver to the add-in. In addition to a boolean, anything that can serialized to a string including JSON and XML can be sent. */ - messageParent(messageObject: any): void; + messageParent(message: boolean | string): void; /** * Closes the UI container where the JavaScript is executing. * From a82fd862cef8972764219c3d7a0878ae7fc03b8f Mon Sep 17 00:00:00 2001 From: Ricky Kirkham Date: Sun, 28 Oct 2018 21:42:40 -0700 Subject: [PATCH 2/3] reverse --- 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 999e1c2b5c..bd2ff1fbe0 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -1070,9 +1070,9 @@ declare namespace Office { displayDialogAsync(startAddress: string, options?: DialogOptions, callback?: (result: AsyncResult) => void): void; /** * Delivers a message from the dialog box to its parent/opener page. The page calling this API must be on the same domain as the parent. - * @param message Accepts a message from the dialog to deliver to the add-in. In addition to a boolean, anything that can serialized to a string including JSON and XML can be sent. + * @param messageObject Accepts a message from the dialog to deliver to the add-in. */ - messageParent(message: boolean | string): void; + messageParent(messageObject: any): void; /** * Closes the UI container where the JavaScript is executing. * From 3361bc2868bcce8817c95710f4d6c03a6f7ea41a Mon Sep 17 00:00:00 2001 From: Ricky Kirkham Date: Sun, 28 Oct 2018 21:44:55 -0700 Subject: [PATCH 3/3] office-js fix param description in messageParent --- 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 bd2ff1fbe0..999e1c2b5c 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -1070,9 +1070,9 @@ declare namespace Office { displayDialogAsync(startAddress: string, options?: DialogOptions, callback?: (result: AsyncResult) => void): void; /** * Delivers a message from the dialog box to its parent/opener page. The page calling this API must be on the same domain as the parent. - * @param messageObject Accepts a message from the dialog to deliver to the add-in. + * @param message Accepts a message from the dialog to deliver to the add-in. In addition to a boolean, anything that can serialized to a string including JSON and XML can be sent. */ - messageParent(messageObject: any): void; + messageParent(message: boolean | string): void; /** * Closes the UI container where the JavaScript is executing. *