@types/office-js-preview 1.0.270 → 1.0.271

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ This package contains type definitions for Office.js (https://github.com/OfficeD
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 19 Nov 2021 19:31:13 GMT
11
+ * Last updated: Fri, 03 Dec 2021 19:01:09 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -607,12 +607,12 @@ declare namespace Office {
607
607
  */
608
608
  hide(): Promise<void>;
609
609
  /**
610
- * Adds a listener for the `onVisibilityModeChanged` event.
611
- * @param listener - The listener function that is called when the event is emitted. This function takes in a message for the receiving component.
612
- * @returns A promise that resolves to a function when the listener is added. Calling it removes the listener.
610
+ * Adds a handler for the `onVisibilityModeChanged` event.
611
+ * @param handler - The handler function that is called when the event is emitted. This function takes in a message for the receiving component.
612
+ * @returns A promise that resolves to a function when the handler is added. Calling it removes the handler.
613
613
  */
614
614
  onVisibilityModeChanged(
615
- listener: (message: VisibilityModeChangedMessage) => void,
615
+ handler: (message: VisibilityModeChangedMessage) => void,
616
616
  ): Promise<() => Promise<void>>;
617
617
 
618
618
  /**
@@ -657,7 +657,7 @@ declare namespace Office {
657
657
  * This event handler will be triggered if one of the following conditions is met:
658
658
  * 1. When the notification dialog is open, the end user clicks the **Don't close** button within the dialog, clicks the Close button in the upper right corner of the dialog, or presses the Esc key.
659
659
  * 2. When the add-in calls the `enable` method on the `BeforeDocumentCloseNotification` object.
660
- * @param listener The event handler that is called when the dialog is cancelled.
660
+ * @param handler The event handler that is called when the dialog is cancelled.
661
661
  * @returns A promise that resolves when the event handler is added.
662
662
  *
663
663
  * @remarks
@@ -665,7 +665,7 @@ declare namespace Office {
665
665
  * @beta
666
666
  */
667
667
  onCloseActionCancelled(
668
- listener: () => void
668
+ handler: () => void
669
669
  ): Promise<() => Promise<void>>;
670
670
  }
671
671
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.270",
3
+ "version": "1.0.271",
4
4
  "description": "TypeScript definitions for Office.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
6
6
  "license": "MIT",
@@ -40,6 +40,6 @@
40
40
  },
41
41
  "scripts": {},
42
42
  "dependencies": {},
43
- "typesPublisherContentHash": "f8a6c9d852469d77a49ffea118a7c2be0f21d2dd0ca8f0cc84c4eeb553a65af2",
43
+ "typesPublisherContentHash": "de34b23aa02f883d8af3ad56cbecf1c9ae0fc4880eb6d7c677336e52912793fa",
44
44
  "typeScriptVersion": "3.8"
45
45
  }