@types/office-js 1.0.221 → 1.0.222

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.
office-js/README.md CHANGED
@@ -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.
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
 
office-js/index.d.ts CHANGED
@@ -559,12 +559,12 @@ declare namespace Office {
559
559
  */
560
560
  hide(): Promise<void>;
561
561
  /**
562
- * Adds a listener for the `onVisibilityModeChanged` event.
563
- * @param listener - The listener function that is called when the event is emitted. This function takes in a message for the receiving component.
564
- * @returns A promise that resolves to a function when the listener is added. Calling it removes the listener.
562
+ * Adds a handler for the `onVisibilityModeChanged` event.
563
+ * @param handler - The handler function that is called when the event is emitted. This function takes in a message for the receiving component.
564
+ * @returns A promise that resolves to a function when the handler is added. Calling it removes the handler.
565
565
  */
566
566
  onVisibilityModeChanged(
567
- listener: (message: VisibilityModeChangedMessage) => void,
567
+ handler: (message: VisibilityModeChangedMessage) => void,
568
568
  ): Promise<() => Promise<void>>;
569
569
  }
570
570
  /**
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.221",
3
+ "version": "1.0.222",
4
4
  "description": "TypeScript definitions for Office.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
6
6
  "license": "MIT",
@@ -40,6 +40,6 @@
40
40
  },
41
41
  "scripts": {},
42
42
  "dependencies": {},
43
- "typesPublisherContentHash": "7b1d022223980ac6cde4ad253c968d2d92454af5352e861b15a7bda2525bfc2c",
43
+ "typesPublisherContentHash": "a6c977fef82c70cf46ec9790cdc282d207b6dd988a1b83905d44303fbb65e227",
44
44
  "typeScriptVersion": "3.8"
45
45
  }