Skip to content

Commit 2cea858

Browse files
[office-js][office-js-preview] (Outlook) Fix enum for drag-and-drop event (DefinitelyTyped#73559)
1 parent 9da85b1 commit 2cea858

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,16 +688,16 @@ declare namespace Office {
688688
* Occurs in Outlook on the web and the new Outlook on Windows when messages or file attachments in the Outlook client window are
689689
* dragged then dropped into the task pane of an add-in.
690690
*
691-
* To add an event handler for the `ItemDraggedAndDropped` event, use the `addHandlerAsync` method of the `Mailbox` object.
691+
* To add an event handler for the `DragAndDropEvent` event, use the `addHandlerAsync` method of the `Mailbox` object.
692692
* The event handler receives an argument of type
693693
* {@link https://learn.microsoft.com/javascript/api/outlook/office.draganddropeventargs | Office.DragAndDropEventArgs}.
694694
*
695-
* **Important**: The `ItemDraggedAndDropped` event isn't supported in Outlook on Windows (classic) and on Mac. If the `ItemDraggedAndDropped` handler
695+
* **Important**: The `DragAndDropEvent` event isn't supported in Outlook on Windows (classic) and on Mac. If the `DragAndDropEvent` handler
696696
* runs on these clients, an error occurs ("This event isn't supported on this platform.").
697697
*
698698
* [Api set: Mailbox 1.5]
699699
*/
700-
ItemDraggedAndDropped,
700+
DragAndDropEvent,
701701
/**
702702
* Triggers when a `customXmlPart` node is deleted.
703703
*/
@@ -14585,7 +14585,7 @@ declare namespace Office {
1458514585
}
1458614586
/**
1458714587
* Provides details about the mouse pointer position and the messages or file attachments being dragged and dropped into an add-in's task pane when the
14588-
* `Office.EventType.ItemDraggedAndDropped` event is raised.
14588+
* `Office.EventType.DragAndDropEvent` event is raised.
1458914589
*
1459014590
* @remarks
1459114591
*

types/office-js/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,16 +688,16 @@ declare namespace Office {
688688
* Occurs in Outlook on the web and the new Outlook on Windows when messages or file attachments in the Outlook client window are
689689
* dragged then dropped into the task pane of an add-in.
690690
*
691-
* To add an event handler for the `ItemDraggedAndDropped` event, use the `addHandlerAsync` method of the `Mailbox` object.
691+
* To add an event handler for the `DragAndDropEvent` event, use the `addHandlerAsync` method of the `Mailbox` object.
692692
* The event handler receives an argument of type
693693
* {@link https://learn.microsoft.com/javascript/api/outlook/office.draganddropeventargs | Office.DragAndDropEventArgs}.
694694
*
695-
* **Important**: The `ItemDraggedAndDropped` event isn't supported in Outlook on Windows (classic) and on Mac. If the `ItemDraggedAndDropped` handler
695+
* **Important**: The `DragAndDropEvent` event isn't supported in Outlook on Windows (classic) and on Mac. If the `DragAndDropEvent` handler
696696
* runs on these clients, an error occurs ("This event isn't supported on this platform.").
697697
*
698698
* [Api set: Mailbox 1.5]
699699
*/
700-
ItemDraggedAndDropped,
700+
DragAndDropEvent,
701701
/**
702702
* Triggers when a `customXmlPart` node is deleted.
703703
*/
@@ -14366,7 +14366,7 @@ declare namespace Office {
1436614366
}
1436714367
/**
1436814368
* Provides details about the mouse pointer position and the messages or file attachments being dragged and dropped into an add-in's task pane when the
14369-
* `Office.EventType.ItemDraggedAndDropped` event is raised.
14369+
* `Office.EventType.DragAndDropEvent` event is raised.
1437014370
*
1437114371
* @remarks
1437214372
*

0 commit comments

Comments
 (0)