From 6357930cf19fe28407dc846a98e52fa944ec6c55 Mon Sep 17 00:00:00 2001 From: Andrew Nichols Date: Fri, 25 Aug 2017 12:21:14 -0700 Subject: [PATCH] [Office-js] Update Outlook Typings Files (#19321) * [Office-js] Update Outlook Typings Files * fix typo attachment -> attachments --- types/office-js/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 37ca54347b..252e8b4512 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -1802,6 +1802,11 @@ declare namespace Office { urls: Array; } export interface Item { + /** + * You can cast item with `(Item as Office.[CAST_TYPE])` where CAST_TYPE is one of the following: ItemRead, ItemCompose, Message, + * MessageRead, MessageCompose, Appointment, AppointmentRead, AppointmentCompose + */ + __BeSureToCastThisObject__: void; body: Body; itemType: Office.MailboxEnums.ItemType; notificationMessages: NotificationMessages; @@ -1867,6 +1872,7 @@ declare namespace Office { setSelectedDataAsync(data: string, options?: AsyncContextOptions & CoercionTypeOptions, callback?: (result: AsyncResult) => void): void; } export interface ItemRead extends Item { + attachments: Array; itemClass: string; itemId: string; normalizedSubject: string;