@types/office-js 1.0.257 → 1.0.260
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 +1 -1
- office-js/index.d.ts +11 -13
- office-js/package.json +3 -3
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:
|
|
11
|
+
* Last updated: Fri, 10 Jun 2022 17:01:35 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
|
@@ -16873,7 +16873,7 @@ declare namespace Office {
|
|
|
16873
16873
|
* **Important**: In Outlook on the web, if a user created a new message by activating a contact's email address link from their contact or
|
|
16874
16874
|
* profile card, your add-in's `getAsync` call currently won't return a value in the `displayName` property of the
|
|
16875
16875
|
* associated `EmailAddressDetails` object. For more details, refer to the
|
|
16876
|
-
* {@link https://github.com/OfficeDev/office-js
|
|
16876
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
16877
16877
|
*
|
|
16878
16878
|
* @remarks
|
|
16879
16879
|
* [Api set: Mailbox 1.1]
|
|
@@ -16901,7 +16901,7 @@ declare namespace Office {
|
|
|
16901
16901
|
* **Important**: In Outlook on the web, if a user created a new message by activating a contact's email address link from their contact or
|
|
16902
16902
|
* profile card, your add-in's `getAsync` call currently won't return a value in the `displayName` property of the
|
|
16903
16903
|
* associated `EmailAddressDetails` object. For more details, refer to the
|
|
16904
|
-
* {@link https://github.com/OfficeDev/office-js
|
|
16904
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
16905
16905
|
*
|
|
16906
16906
|
* @remarks
|
|
16907
16907
|
* [Api set: Mailbox 1.1]
|
|
@@ -18400,34 +18400,32 @@ declare namespace OfficeExtension {
|
|
|
18400
18400
|
const Promise: Office.IPromiseConstructor;
|
|
18401
18401
|
type IPromise<T> = Promise<T>;
|
|
18402
18402
|
|
|
18403
|
-
/**
|
|
18403
|
+
/**
|
|
18404
|
+
* Collection of tracked objects, contained within a request context.
|
|
18405
|
+
* See {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects}
|
|
18406
|
+
* for more information.
|
|
18407
|
+
*/
|
|
18404
18408
|
class TrackedObjects {
|
|
18405
18409
|
/**
|
|
18406
18410
|
* Track a new object for automatic adjustment based on surrounding changes in the document. Only some object types require this.
|
|
18407
18411
|
* If you are using an object across ".sync" calls and outside the sequential execution of a ".run" batch,
|
|
18408
18412
|
* 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.
|
|
18413
|
+
* 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
|
|
18414
|
+
* the parent collection.
|
|
18414
18415
|
*/
|
|
18415
18416
|
add(object: ClientObject): void;
|
|
18416
18417
|
/**
|
|
18417
18418
|
* Track a set of objects for automatic adjustment based on surrounding changes in the document. Only some object types require this.
|
|
18418
18419
|
* If you are using an object across ".sync" calls and outside the sequential execution of a ".run" batch,
|
|
18419
18420
|
* 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.
|
|
18421
|
+
* 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
|
|
18422
|
+
* the parent collection.
|
|
18421
18423
|
*/
|
|
18422
18424
|
add(objects: ClientObject[]): void;
|
|
18423
18425
|
/**
|
|
18424
18426
|
* Release the memory associated with an object that was previously added to this collection.
|
|
18425
18427
|
* 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
18428
|
* 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
18429
|
*/
|
|
18432
18430
|
remove(object: ClientObject): void;
|
|
18433
18431
|
/**
|
office-js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.260",
|
|
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": "
|
|
49
|
-
"typeScriptVersion": "
|
|
48
|
+
"typesPublisherContentHash": "6a90f5c3445c7f8862e0ee4588bef46c90635ad1a01410eb4b991f2d31c068ff",
|
|
49
|
+
"typeScriptVersion": "4.0"
|
|
50
50
|
}
|