@types/office-js-preview 1.0.265 → 1.0.266
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
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: Mon, 01 Nov 2021
|
|
11
|
+
* Last updated: Mon, 01 Nov 2021 20:31:23 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
|
@@ -54500,7 +54500,7 @@ declare namespace Excel {
|
|
|
54500
54500
|
}): FunctionResult<T>;
|
|
54501
54501
|
/**
|
|
54502
54502
|
* Overrides the JavaScript `toJSON()` method in order to provide more useful output when an API object is passed to `JSON.stringify()`. (`JSON.stringify`, in turn, calls the `toJSON` method of the object that is passed to it.)
|
|
54503
|
-
* Whereas the original FunctionResult<T
|
|
54503
|
+
* Whereas the original `FunctionResult<T>` object is an API object, the `toJSON` method returns a plain JavaScript object (typed as `Interfaces.FunctionResultData<T>`) that contains shallow copies of any loaded child properties from the original object.
|
|
54504
54504
|
*/
|
|
54505
54505
|
toJSON(): Interfaces.FunctionResultData<T>;
|
|
54506
54506
|
}
|
|
@@ -82753,7 +82753,10 @@ declare namespace Word {
|
|
|
82753
82753
|
*/
|
|
82754
82754
|
readonly lists: Word.ListCollection;
|
|
82755
82755
|
/**
|
|
82756
|
-
*
|
|
82756
|
+
* Gets the collection of paragraph objects in the content control. Read-only.
|
|
82757
|
+
*
|
|
82758
|
+
* **Important**: For requirement sets 1.1 and 1.2, paragraphs in tables wholly contained within this content control are not returned.
|
|
82759
|
+
* From requirement set 1.3, paragraphs in such tables are also returned.
|
|
82757
82760
|
*
|
|
82758
82761
|
* @remarks
|
|
82759
82762
|
* [Api set: WordApi 1.1]
|
|
@@ -86393,6 +86396,9 @@ declare namespace Word {
|
|
|
86393
86396
|
/**
|
|
86394
86397
|
* Gets the parent body of the range. Read-only.
|
|
86395
86398
|
*
|
|
86399
|
+
* **Important**: For requirement sets 1.1 and 1.2, paragraphs in tables wholly contained within this range are not returned.
|
|
86400
|
+
* From requirement set 1.3, paragraphs in such tables are also returned.
|
|
86401
|
+
*
|
|
86396
86402
|
* @remarks
|
|
86397
86403
|
* [Api set: WordApi 1.3]
|
|
86398
86404
|
*/
|
|
@@ -96234,14 +96240,6 @@ declare namespace Word {
|
|
|
96234
96240
|
/**
|
|
96235
96241
|
* Executes a batch script that performs actions on the Word object model, using a new RequestContext. When the promise is resolved, any tracked objects that were automatically allocated during execution will be released.
|
|
96236
96242
|
* @param batch - A function that takes in a RequestContext and returns a promise (typically, just the result of "context.sync()"). The context parameter facilitates requests to the Word application. Since the Office add-in and the Word application run in two different processes, the RequestContext is required to get access to the Word object model from the add-in.
|
|
96237
|
-
*
|
|
96238
|
-
* @remarks
|
|
96239
|
-
*
|
|
96240
|
-
* In addition to this signature, the method also has the following signatures, which allow you to resume using the request context of previously created objects:
|
|
96241
|
-
*
|
|
96242
|
-
* run<T>(object: OfficeExtension.ClientObject, batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
96243
|
-
*
|
|
96244
|
-
* run<T>(objects: OfficeExtension.ClientObject[], batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
96245
96243
|
*/
|
|
96246
96244
|
function run<T>(batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
96247
96245
|
}
|
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.266",
|
|
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",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {},
|
|
42
42
|
"dependencies": {},
|
|
43
|
-
"typesPublisherContentHash": "
|
|
43
|
+
"typesPublisherContentHash": "f60321769b6b2f67dbb1e217749b0ecdb6df989c6750d58b20198c885e960c05",
|
|
44
44
|
"typeScriptVersion": "3.7"
|
|
45
45
|
}
|