From a3903ecc9092441b100cd1e09d55d4f790584eca Mon Sep 17 00:00:00 2001 From: Rick-Kirkham Date: Fri, 20 Mar 2020 13:46:32 -0700 Subject: [PATCH] office-js-preview add DialogParentMessageReceivedEventArgs (#43271) * add DialogParentMessageReceivedEventArgs * review changes * review changes --- types/office-js-preview/index.d.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 0791ddb5ce..e16adc7baa 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -5104,6 +5104,25 @@ declare namespace Office { */ type: EventType; } + /** + * Provides information about the message from the parent page that raised the `DialogParentMessageReceived` event. + * + * @beta + * + * To add an event handler for the `DialogParentMessageReceived` event, use the `addHandlerAsync` method of the + * {@link Office.UI} object. + * + */ + interface DialogParentMessageReceivedEventArgs { + /** + * Gets the content of the message sent from the parent page, which can be any string or stringified data. + */ + message: string; + /** + * Get an {@link Office.EventType} enumeration value that identifies the kind of event that was raised. + */ + type: EventType; + } /** * Represents a slice of a document file. The Slice object is accessed with the `File.getSliceAsync` method. */