@types/office-js 1.0.258 → 1.0.261

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: Wed, 01 Jun 2022 18:31:31 GMT
11
+ * Last updated: Mon, 13 Jun 2022 17:31:34 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
@@ -18067,7 +18067,7 @@ declare namespace Office {
18067
18067
  * <table>
18068
18068
  * <tr>
18069
18069
  * <th>Value</th>
18070
- * <th>Description?</th>
18070
+ * <th>Description</th>
18071
18071
  * </tr>
18072
18072
  * <tr>
18073
18073
  * <td>enterprise</td>
@@ -18086,6 +18086,10 @@ declare namespace Office {
18086
18086
  * <td>The mailbox is associated with a personal Outlook.com account.</td>
18087
18087
  * </tr>
18088
18088
  * </table>
18089
+ *
18090
+ * **Note**: For hybrid Exchange environments, the returned account type value depends on where the mailbox is hosted.
18091
+ * If the mailbox is on an on-premises server, the account type value is **enterprise**. However, if it's hosted on
18092
+ * Exchange Online, the account type value is **office365**.
18089
18093
  */
18090
18094
  accountType: string;
18091
18095
  /**
@@ -18400,34 +18404,32 @@ declare namespace OfficeExtension {
18400
18404
  const Promise: Office.IPromiseConstructor;
18401
18405
  type IPromise<T> = Promise<T>;
18402
18406
 
18403
- /** Collection of tracked objects, contained within a request context. See "context.trackedObjects" for more information. */
18407
+ /**
18408
+ * Collection of tracked objects, contained within a request context.
18409
+ * See {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects}
18410
+ * for more information.
18411
+ */
18404
18412
  class TrackedObjects {
18405
18413
  /**
18406
18414
  * Track a new object for automatic adjustment based on surrounding changes in the document. Only some object types require this.
18407
18415
  * If you are using an object across ".sync" calls and outside the sequential execution of a ".run" batch,
18408
18416
  * and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you needed to have added the object
18409
- * to the tracked object collection when the object was first created.
18410
- *
18411
- * This method also has the following signature:
18412
- *
18413
- * `add(objects: ClientObject[]): void;` Where objects is an array of objects to be tracked.
18417
+ * to the tracked object collection when the object was first created. If this object is part of a collection in Word, you should also track
18418
+ * the parent collection.
18414
18419
  */
18415
18420
  add(object: ClientObject): void;
18416
18421
  /**
18417
18422
  * Track a set of objects for automatic adjustment based on surrounding changes in the document. Only some object types require this.
18418
18423
  * If you are using an object across ".sync" calls and outside the sequential execution of a ".run" batch,
18419
18424
  * and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you needed to have added the object
18420
- * to the tracked object collection when the object was first created.
18425
+ * to the tracked object collection when the object was first created. If this object is part of a collection in Word, you should also track
18426
+ * the parent collection.
18421
18427
  */
18422
18428
  add(objects: ClientObject[]): void;
18423
18429
  /**
18424
18430
  * Release the memory associated with an object that was previously added to this collection.
18425
18431
  * Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them.
18426
18432
  * You will need to call `context.sync()` before the memory release takes effect.
18427
- *
18428
- * This method also has the following signature:
18429
- *
18430
- * `remove(objects: ClientObject[]): void;` Where objects is an array of objects to be removed.
18431
18433
  */
18432
18434
  remove(object: ClientObject): void;
18433
18435
  /**
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.258",
3
+ "version": "1.0.261",
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",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "3a6b1cffaa01f254045a36942fa861556459328c1573e8173558cdbf05050da8",
49
- "typeScriptVersion": "3.9"
48
+ "typesPublisherContentHash": "a2464b03ed422cb68eac98cfb0daff10857b2e67e5dde42ee84943c2d2b26486",
49
+ "typeScriptVersion": "4.0"
50
50
  }