@types/office-js 1.0.224 → 1.0.228
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 +16 -6
- office-js/package.json +2 -2
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: Wed, 22 Dec 2021 20:01:22 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
|
@@ -333,10 +333,20 @@ declare namespace Office {
|
|
|
333
333
|
* Represents the add-in.
|
|
334
334
|
*/
|
|
335
335
|
const addin: Addin;
|
|
336
|
+
/**
|
|
337
|
+
* Represents the Auth interface.
|
|
338
|
+
*/
|
|
339
|
+
const auth: Auth;
|
|
336
340
|
/**
|
|
337
341
|
* Represents the ribbon associated with the Office application.
|
|
338
342
|
*/
|
|
339
343
|
const ribbon: Ribbon;
|
|
344
|
+
/**
|
|
345
|
+
* Checks if the specified requirement set is supported by the host Office application.
|
|
346
|
+
* @param name - Set name; e.g., "MatrixBindings".
|
|
347
|
+
* @param minVersion - The minimum required version; e.g., "1.4".
|
|
348
|
+
*/
|
|
349
|
+
function isSetSupported(name: string, minVersion?: string): boolean;
|
|
340
350
|
// Enumerations
|
|
341
351
|
/**
|
|
342
352
|
* Provides options to determine the startup behavior of the add-in upon next start-up.
|
|
@@ -75743,14 +75753,14 @@ declare namespace Word {
|
|
|
75743
75753
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
75744
75754
|
context: RequestContext;
|
|
75745
75755
|
/**
|
|
75746
|
-
* Gets the body object of the main document. The body is the text that excludes headers, footers, footnotes, textboxes, etc
|
|
75756
|
+
* Gets the body object of the main document. The body is the text that excludes headers, footers, footnotes, textboxes, etc. Read-only.
|
|
75747
75757
|
*
|
|
75748
75758
|
* @remarks
|
|
75749
75759
|
* [Api set: WordApi 1.1]
|
|
75750
75760
|
*/
|
|
75751
75761
|
readonly body: Word.Body;
|
|
75752
75762
|
/**
|
|
75753
|
-
* Gets the collection of content control objects in the document. This includes content controls in the body of the document, headers, footers, textboxes, etc
|
|
75763
|
+
* Gets the collection of content control objects in the document. This includes content controls in the body of the document, headers, footers, textboxes, etc. Read-only.
|
|
75754
75764
|
*
|
|
75755
75765
|
* @remarks
|
|
75756
75766
|
* [Api set: WordApi 1.1]
|
|
@@ -81928,7 +81938,7 @@ declare namespace Word {
|
|
|
81928
81938
|
/** An interface for updating data on the Document object, for use in `document.set({ ... })`. */
|
|
81929
81939
|
interface DocumentUpdateData {
|
|
81930
81940
|
/**
|
|
81931
|
-
* Gets the body object of the main document. The body is the text that excludes headers, footers, footnotes, textboxes, etc
|
|
81941
|
+
* Gets the body object of the main document. The body is the text that excludes headers, footers, footnotes, textboxes, etc.
|
|
81932
81942
|
*
|
|
81933
81943
|
* @remarks
|
|
81934
81944
|
* [Api set: WordApi 1.1]
|
|
@@ -82869,14 +82879,14 @@ declare namespace Word {
|
|
|
82869
82879
|
/** An interface describing the data returned by calling `document.toJSON()`. */
|
|
82870
82880
|
interface DocumentData {
|
|
82871
82881
|
/**
|
|
82872
|
-
* Gets the body object of the main document. The body is the text that excludes headers, footers, footnotes, textboxes, etc
|
|
82882
|
+
* Gets the body object of the main document. The body is the text that excludes headers, footers, footnotes, textboxes, etc. Read-only.
|
|
82873
82883
|
*
|
|
82874
82884
|
* @remarks
|
|
82875
82885
|
* [Api set: WordApi 1.1]
|
|
82876
82886
|
*/
|
|
82877
82887
|
body?: Word.Interfaces.BodyData;
|
|
82878
82888
|
/**
|
|
82879
|
-
* Gets the collection of content control objects in the document. This includes content controls in the body of the document, headers, footers, textboxes, etc
|
|
82889
|
+
* Gets the collection of content control objects in the document. This includes content controls in the body of the document, headers, footers, textboxes, etc. Read-only.
|
|
82880
82890
|
*
|
|
82881
82891
|
* @remarks
|
|
82882
82892
|
* [Api set: WordApi 1.1]
|
|
@@ -84350,7 +84360,7 @@ declare namespace Word {
|
|
|
84350
84360
|
*/
|
|
84351
84361
|
$all?: boolean;
|
|
84352
84362
|
/**
|
|
84353
|
-
* Gets the body object of the main document. The body is the text that excludes headers, footers, footnotes, textboxes, etc
|
|
84363
|
+
* Gets the body object of the main document. The body is the text that excludes headers, footers, footnotes, textboxes, etc.
|
|
84354
84364
|
*
|
|
84355
84365
|
* @remarks
|
|
84356
84366
|
* [Api set: WordApi 1.1]
|
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.228",
|
|
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",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {},
|
|
42
42
|
"dependencies": {},
|
|
43
|
-
"typesPublisherContentHash": "
|
|
43
|
+
"typesPublisherContentHash": "5e247175379108ade43889b7ac81cc6a0bac98843676d85d1becd29947c280da",
|
|
44
44
|
"typeScriptVersion": "3.8"
|
|
45
45
|
}
|