mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
[Office-js] Add item.dateTimeCreated and ui.closeContainer (#18248)
This commit is contained in:
10
types/office-js/index.d.ts
vendored
10
types/office-js/index.d.ts
vendored
@@ -160,6 +160,15 @@ declare namespace Office {
|
||||
* @param messageObject Accepts a message from the dialog to deliver to the add-in.
|
||||
*/
|
||||
messageParent(messageObject: any): void;
|
||||
/**
|
||||
* Closes the UI container where the JavaScript is executing.
|
||||
* The behavior of this method is specified by the following table.
|
||||
* When called from Behavior
|
||||
* A UI-less command button No effect. Any dialogs opened by displayDialogAsync will remain open.
|
||||
* A taskpane The taskpane will close. Any dialogs opened by displayDialogAsync will also close. If the taskpane supports pinning and was pinned by the user, it will be un-pinned.
|
||||
* A module extension No effect.
|
||||
*/
|
||||
closeContainer(): void;
|
||||
}
|
||||
export interface DialogOptions {
|
||||
/**
|
||||
@@ -1769,6 +1778,7 @@ declare namespace Office {
|
||||
body: Body;
|
||||
itemType: Office.MailboxEnums.ItemType;
|
||||
notificationMessages: NotificationMessages;
|
||||
dateTimeCreated: Date;
|
||||
/**
|
||||
* Asynchronously loads custom properties that are specific to the item and a app for Office
|
||||
* @param callback The optional callback method
|
||||
|
||||
Reference in New Issue
Block a user