@types/office-js-preview 1.0.309 → 1.0.312
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 +13 -11
- 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: Mon, 13 Jun 2022 17:31: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
|
@@ -18808,6 +18808,10 @@ declare namespace Office {
|
|
|
18808
18808
|
* <td>The mailbox is associated with a personal Outlook.com account.</td>
|
|
18809
18809
|
* </tr>
|
|
18810
18810
|
* </table>
|
|
18811
|
+
*
|
|
18812
|
+
* **Note**: For hybrid Exchange environments, the returned account type value depends on where the mailbox is hosted.
|
|
18813
|
+
* If the mailbox is on an on-premises server, the account type value is **enterprise**. However, if it's hosted on
|
|
18814
|
+
* Exchange Online, the account type value is **office365**.
|
|
18811
18815
|
*/
|
|
18812
18816
|
accountType: string;
|
|
18813
18817
|
/**
|
|
@@ -19122,34 +19126,32 @@ declare namespace OfficeExtension {
|
|
|
19122
19126
|
const Promise: Office.IPromiseConstructor;
|
|
19123
19127
|
type IPromise<T> = Promise<T>;
|
|
19124
19128
|
|
|
19125
|
-
/**
|
|
19129
|
+
/**
|
|
19130
|
+
* Collection of tracked objects, contained within a request context.
|
|
19131
|
+
* See {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects}
|
|
19132
|
+
* for more information.
|
|
19133
|
+
*/
|
|
19126
19134
|
class TrackedObjects {
|
|
19127
19135
|
/**
|
|
19128
19136
|
* Track a new object for automatic adjustment based on surrounding changes in the document. Only some object types require this.
|
|
19129
19137
|
* If you are using an object across ".sync" calls and outside the sequential execution of a ".run" batch,
|
|
19130
19138
|
* 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.
|
|
19139
|
+
* 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
|
|
19140
|
+
* the parent collection.
|
|
19136
19141
|
*/
|
|
19137
19142
|
add(object: ClientObject): void;
|
|
19138
19143
|
/**
|
|
19139
19144
|
* Track a set of objects for automatic adjustment based on surrounding changes in the document. Only some object types require this.
|
|
19140
19145
|
* If you are using an object across ".sync" calls and outside the sequential execution of a ".run" batch,
|
|
19141
19146
|
* 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.
|
|
19147
|
+
* 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
|
|
19148
|
+
* the parent collection.
|
|
19143
19149
|
*/
|
|
19144
19150
|
add(objects: ClientObject[]): void;
|
|
19145
19151
|
/**
|
|
19146
19152
|
* Release the memory associated with an object that was previously added to this collection.
|
|
19147
19153
|
* 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
19154
|
* 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
19155
|
*/
|
|
19154
19156
|
remove(object: ClientObject): void;
|
|
19155
19157
|
/**
|
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.312",
|
|
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": "f638e5a7d1b91c24a42e5466a16f93db9098b00455e2ae7c7e8d21b87e911b44",
|
|
49
|
+
"typeScriptVersion": "4.0"
|
|
50
50
|
}
|