Skip to content

Commit 72cbf47

Browse files
🤖 Merge PR DefinitelyTyped#73000 [office-js][office-js-preview] (Outlook) Clarify the type of event object used by certain features by @samantharamon
1 parent 70d69fa commit 72cbf47

File tree

2 files changed

+46
-6
lines changed

2 files changed

+46
-6
lines changed

‎types/office-js-preview/index.d.ts‎

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3389,10 +3389,16 @@ declare namespace Office {
33893389
*
33903390
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
33913391
*
3392-
* **Important**: The `options` parameter only applies to Outlook add-ins. It was introduced in Mailbox 1.8. Although Outlook on Android and on iOS support up to
3392+
* **Important**:
3393+
*
3394+
* - The `options` parameter only applies to Outlook add-ins. It was introduced in Mailbox 1.8. Although Outlook on Android and on iOS support up to
33933395
* Mailbox 1.5, the `options` parameter is supported in online-meeting provider and note-logging mobile add-ins. For more information on API support in
33943396
* Outlook on mobile devices, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
33953397
*
3398+
* - {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | Event-based activation} and
3399+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam-reporting} add-ins use a different event object to signal when they've
3400+
* completed processing an event. For more information, see {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent | Office.MailboxEvent}.
3401+
*
33963402
* @param options Optional. In Outlook, an object that specifies the behavior of an on-send add-in, online-meeting provider add-in, or note-logging mobile add-in
33973403
* when it completes processing an event.
33983404
*/
@@ -3412,9 +3418,15 @@ declare namespace Office {
34123418
*
34133419
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
34143420
*
3415-
* **Important**: Although Outlook on Android and on iOS support up to Mailbox 1.5, the `EventCompletedOptions` object is supported in online-meeting provider and
3421+
* **Important**:
3422+
*
3423+
* - Although Outlook on Android and on iOS support up to Mailbox 1.5, the `EventCompletedOptions` object is supported in online-meeting provider and
34163424
* note-logging mobile add-ins. For more information on API support in Outlook on mobile devices, see
34173425
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
3426+
*
3427+
* - {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | Event-based activation} and
3428+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam-reporting} add-ins use a different event object to signal when they've
3429+
* completed processing an event. For more information, see {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent | Office.MailboxEvent}.
34183430
*/
34193431
interface EventCompletedOptions {
34203432
/**
@@ -18470,7 +18482,15 @@ declare namespace Office {
1847018482
*
1847118483
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
1847218484
*
18473-
* **Important**: Support for the integrated spam-reporting feature was introduced in Mailbox 1.14.
18485+
* **Important**:
18486+
*
18487+
* - Support for the integrated spam-reporting feature was introduced in Mailbox 1.14.
18488+
*
18489+
* - For information about the Event object used by the {@link https://learn.microsoft.com/office/dev/add-ins/design/add-in-commands | function command button},
18490+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins | on-send add-in},
18491+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/online-meeting | online-meeting provider add-in}, and
18492+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-log-appointments | note-logging mobile add-in},
18493+
* see {@link https://learn.microsoft.com/javascript/api/office/office.addincommands.event | Office.AddinCommands.Event}.
1847418494
*/
1847518495
interface MailboxEvent {
1847618496
/**

‎types/office-js/index.d.ts‎

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3387,10 +3387,16 @@ declare namespace Office {
33873387
*
33883388
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
33893389
*
3390-
* **Important**: The `options` parameter only applies to Outlook add-ins. It was introduced in Mailbox 1.8. Although Outlook on Android and on iOS support up to
3390+
* **Important**:
3391+
*
3392+
* - The `options` parameter only applies to Outlook add-ins. It was introduced in Mailbox 1.8. Although Outlook on Android and on iOS support up to
33913393
* Mailbox 1.5, the `options` parameter is supported in online-meeting provider and note-logging mobile add-ins. For more information on API support in
33923394
* Outlook on mobile devices, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
33933395
*
3396+
* - {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | Event-based activation} and
3397+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam-reporting} add-ins use a different event object to signal when they've
3398+
* completed processing an event. For more information, see {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent | Office.MailboxEvent}.
3399+
*
33943400
* @param options Optional. In Outlook, an object that specifies the behavior of an on-send add-in, online-meeting provider add-in, or note-logging mobile add-in
33953401
* when it completes processing an event.
33963402
*/
@@ -3410,9 +3416,15 @@ declare namespace Office {
34103416
*
34113417
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
34123418
*
3413-
* **Important**: Although Outlook on Android and on iOS support up to Mailbox 1.5, the `EventCompletedOptions` object is supported in online-meeting provider and
3419+
* **Important**:
3420+
*
3421+
* - Although Outlook on Android and on iOS support up to Mailbox 1.5, the `EventCompletedOptions` object is supported in online-meeting provider and
34143422
* note-logging mobile add-ins. For more information on API support in Outlook on mobile devices, see
34153423
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
3424+
*
3425+
* - {@link https://learn.microsoft.com/office/dev/add-ins/outlook/autolaunch | Event-based activation} and
3426+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/spam-reporting | integrated spam-reporting} add-ins use a different event object to signal when they've
3427+
* completed processing an event. For more information, see {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent | Office.MailboxEvent}.
34163428
*/
34173429
interface EventCompletedOptions {
34183430
/**
@@ -18100,7 +18112,15 @@ declare namespace Office {
1810018112
*
1810118113
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
1810218114
*
18103-
* **Important**: Support for the integrated spam-reporting feature was introduced in Mailbox 1.14.
18115+
* **Important**:
18116+
*
18117+
* - Support for the integrated spam-reporting feature was introduced in Mailbox 1.14.
18118+
*
18119+
* - For information about the Event object used by the {@link https://learn.microsoft.com/office/dev/add-ins/design/add-in-commands | function command button},
18120+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-on-send-addins | on-send add-in},
18121+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/online-meeting | online-meeting provider add-in}, and
18122+
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-log-appointments | note-logging mobile add-in},
18123+
* see {@link https://learn.microsoft.com/javascript/api/office/office.addincommands.event | Office.AddinCommands.Event}.
1810418124
*/
1810518125
interface MailboxEvent {
1810618126
/**

0 commit comments

Comments
 (0)