mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-09 09:01:16 +08:00
Merge pull request #17776 from annich-MS/AddHandlerAsync
[Office-js] Add mailbox.addHandlerAsync and EventType.ItemChanged
This commit is contained in:
12
types/office-js/index.d.ts
vendored
12
types/office-js/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user