diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 935c7b3c35..4c5f6f0ad2 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -288,6 +288,10 @@ declare namespace Office { * Triggers when a document level selection happens */ DocumentSelectionChanged, + /** + * Triggers when the active item changes + */ + ItemChanged, /** * Triggers when a customXmlPart node was deleted */ @@ -1897,6 +1901,14 @@ declare namespace Office { ewsUrl: string; item: Item; userProfile: UserProfile; + /** + * Adds an event handler for a supported event + * @param eventType The event that should invoke the handler + * @param handler The function to handle the event + * @param options Any optional parameters or state data passed to the method + * @param callback The optional method to call when the handler is added + */ + addHandlerAsync(eventType: Office.EventType, handler: (type: Office.EventType) => void, options?: any, callback?: (result: AsyncResult) => void): void; /** * Converts an item ID formatted for REST into EWS format. * @param itemId An item ID formatted for the Outlook REST APIs