@types/office-js-preview 1.0.308 → 1.0.311
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-preview/README.md +1 -1
- office-js-preview/index.d.ts +11 -13
- office-js-preview/package.json +3 -3
office-js-preview/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-preview.
|
|
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-preview/index.d.ts
CHANGED
|
@@ -17511,7 +17511,7 @@ declare namespace Office {
|
|
|
17511
17511
|
* **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
|
|
17512
17512
|
* profile card, your add-in's `getAsync` call currently won't return a value in the `displayName` property of the
|
|
17513
17513
|
* associated `EmailAddressDetails` object. For more details, refer to the
|
|
17514
|
-
* {@link https://github.com/OfficeDev/office-js
|
|
17514
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
17515
17515
|
*
|
|
17516
17516
|
* @remarks
|
|
17517
17517
|
* [Api set: Mailbox 1.1]
|
|
@@ -17539,7 +17539,7 @@ declare namespace Office {
|
|
|
17539
17539
|
* **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
|
|
17540
17540
|
* profile card, your add-in's `getAsync` call currently won't return a value in the `displayName` property of the
|
|
17541
17541
|
* associated `EmailAddressDetails` object. For more details, refer to the
|
|
17542
|
-
* {@link https://github.com/OfficeDev/office-js
|
|
17542
|
+
* {@link https://github.com/OfficeDev/office-js/issues/2201 | related GitHub issue}.
|
|
17543
17543
|
*
|
|
17544
17544
|
* @remarks
|
|
17545
17545
|
* [Api set: Mailbox 1.1]
|
|
@@ -19122,34 +19122,32 @@ declare namespace OfficeExtension {
|
|
|
19122
19122
|
const Promise: Office.IPromiseConstructor;
|
|
19123
19123
|
type IPromise<T> = Promise<T>;
|
|
19124
19124
|
|
|
19125
|
-
/**
|
|
19125
|
+
/**
|
|
19126
|
+
* Collection of tracked objects, contained within a request context.
|
|
19127
|
+
* See {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects}
|
|
19128
|
+
* for more information.
|
|
19129
|
+
*/
|
|
19126
19130
|
class TrackedObjects {
|
|
19127
19131
|
/**
|
|
19128
19132
|
* Track a new object for automatic adjustment based on surrounding changes in the document. Only some object types require this.
|
|
19129
19133
|
* If you are using an object across ".sync" calls and outside the sequential execution of a ".run" batch,
|
|
19130
19134
|
* and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you needed to have added the object
|
|
19131
|
-
* to the tracked object collection when the object was first created.
|
|
19132
|
-
*
|
|
19133
|
-
* This method also has the following signature:
|
|
19134
|
-
*
|
|
19135
|
-
* `add(objects: ClientObject[]): void;` Where objects is an array of objects to be tracked.
|
|
19135
|
+
* 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
|
|
19136
|
+
* the parent collection.
|
|
19136
19137
|
*/
|
|
19137
19138
|
add(object: ClientObject): void;
|
|
19138
19139
|
/**
|
|
19139
19140
|
* Track a set of objects for automatic adjustment based on surrounding changes in the document. Only some object types require this.
|
|
19140
19141
|
* If you are using an object across ".sync" calls and outside the sequential execution of a ".run" batch,
|
|
19141
19142
|
* and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you needed to have added the object
|
|
19142
|
-
* to the tracked object collection when the object was first created.
|
|
19143
|
+
* 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
|
|
19144
|
+
* the parent collection.
|
|
19143
19145
|
*/
|
|
19144
19146
|
add(objects: ClientObject[]): void;
|
|
19145
19147
|
/**
|
|
19146
19148
|
* Release the memory associated with an object that was previously added to this collection.
|
|
19147
19149
|
* Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them.
|
|
19148
19150
|
* You will need to call `context.sync()` before the memory release takes effect.
|
|
19149
|
-
*
|
|
19150
|
-
* This method also has the following signature:
|
|
19151
|
-
*
|
|
19152
|
-
* `remove(objects: ClientObject[]): void;` Where objects is an array of objects to be removed.
|
|
19153
19151
|
*/
|
|
19154
19152
|
remove(object: ClientObject): void;
|
|
19155
19153
|
/**
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.311",
|
|
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",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
49
|
-
"typeScriptVersion": "
|
|
48
|
+
"typesPublisherContentHash": "353b4a1759d4a88697f387cda6c895c27ce31aafecc772e7c7774b84818c2fe5",
|
|
49
|
+
"typeScriptVersion": "4.0"
|
|
50
50
|
}
|