@types/office-js 1.0.483 → 1.0.485
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 +29 -50
- 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: Fri, 28 Mar 2025 14:36:00 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -24171,9 +24171,9 @@ declare namespace Excel {
|
|
|
24171
24171
|
/**
|
|
24172
24172
|
* Represents an unknown cell control.
|
|
24173
24173
|
* This represents a control that was added in a future version of Excel, and the current version of Excel doesn't know how to display this control.
|
|
24174
|
-
*
|
|
24174
|
+
*
|
|
24175
24175
|
* @remarks
|
|
24176
|
-
* [Api set: ExcelApi 1.18]
|
|
24176
|
+
* [Api set: ExcelApi 1.18]
|
|
24177
24177
|
*/
|
|
24178
24178
|
interface UnknownCellControl {
|
|
24179
24179
|
type: CellControlType.unknown;
|
|
@@ -24181,9 +24181,9 @@ declare namespace Excel {
|
|
|
24181
24181
|
/**
|
|
24182
24182
|
* Represents an empty cell control.
|
|
24183
24183
|
* This represents the state where a cell does not have a control.
|
|
24184
|
-
*
|
|
24184
|
+
*
|
|
24185
24185
|
* @remarks
|
|
24186
|
-
* [Api set: ExcelApi 1.18]
|
|
24186
|
+
* [Api set: ExcelApi 1.18]
|
|
24187
24187
|
*/
|
|
24188
24188
|
interface EmptyCellControl {
|
|
24189
24189
|
type: CellControlType.empty;
|
|
@@ -24191,28 +24191,28 @@ declare namespace Excel {
|
|
|
24191
24191
|
/**
|
|
24192
24192
|
* Represents the result of a query that resulted in multiple cell controls.
|
|
24193
24193
|
* If the result has multiple controls, then they can't be represented as a single result.
|
|
24194
|
-
*
|
|
24194
|
+
*
|
|
24195
24195
|
* @remarks
|
|
24196
|
-
* [Api set: ExcelApi 1.18]
|
|
24196
|
+
* [Api set: ExcelApi 1.18]
|
|
24197
24197
|
*/
|
|
24198
24198
|
interface MixedCellControl {
|
|
24199
24199
|
type: CellControlType.mixed;
|
|
24200
24200
|
}
|
|
24201
24201
|
/**
|
|
24202
|
-
|
|
24203
|
-
|
|
24204
|
-
|
|
24205
|
-
|
|
24206
|
-
|
|
24202
|
+
* Represents a checkbox. This is a cell control that allows a user to toggle the boolean value in a cell.
|
|
24203
|
+
*
|
|
24204
|
+
* @remarks
|
|
24205
|
+
* [Api set: ExcelApi 1.18]
|
|
24206
|
+
*/
|
|
24207
24207
|
interface CheckboxCellControl {
|
|
24208
24208
|
type: CellControlType.checkbox;
|
|
24209
24209
|
}
|
|
24210
24210
|
/**
|
|
24211
|
-
|
|
24212
|
-
|
|
24213
|
-
|
|
24214
|
-
|
|
24215
|
-
|
|
24211
|
+
* Represents an interactable control inside of a cell.
|
|
24212
|
+
*
|
|
24213
|
+
* @remarks
|
|
24214
|
+
* [Api set: ExcelApi 1.18]
|
|
24215
|
+
*/
|
|
24216
24216
|
type CellControl = UnknownCellControl | EmptyCellControl | MixedCellControl | CheckboxCellControl;
|
|
24217
24217
|
/**
|
|
24218
24218
|
* Represents a 2D array of cell values.
|
|
@@ -37834,24 +37834,24 @@ declare namespace Excel {
|
|
|
37834
37834
|
}
|
|
37835
37835
|
/**
|
|
37836
37836
|
* Represents a sequence of one or more characters that share the same font attributes in a cell. Can be used as the `textRuns` properties of `getCellProperties` or the `textRuns` input parameter of `setCellProperties`.
|
|
37837
|
-
*
|
|
37837
|
+
*
|
|
37838
37838
|
* @remarks
|
|
37839
37839
|
* [Api set: ExcelApi 1.18]
|
|
37840
37840
|
*/
|
|
37841
37841
|
interface RangeTextRun {
|
|
37842
37842
|
/**
|
|
37843
37843
|
* The font attributes (such as font name, font size, and color) applied to this text run.
|
|
37844
|
-
*
|
|
37844
|
+
*
|
|
37845
37845
|
* @remarks
|
|
37846
37846
|
* [Api set: ExcelApi 1.18]
|
|
37847
37847
|
*/
|
|
37848
37848
|
font?: Excel.CellPropertiesFont;
|
|
37849
37849
|
/**
|
|
37850
37850
|
* The text of this text run.
|
|
37851
|
-
*
|
|
37851
|
+
*
|
|
37852
37852
|
* @remarks
|
|
37853
37853
|
* [Api set: ExcelApi 1.18]
|
|
37854
|
-
*/
|
|
37854
|
+
*/
|
|
37855
37855
|
text: string;
|
|
37856
37856
|
}
|
|
37857
37857
|
/**
|
|
@@ -65677,6 +65677,7 @@ declare namespace Excel {
|
|
|
65677
65677
|
pivotTableRangeConflict = "PivotTableRangeConflict",
|
|
65678
65678
|
powerQueryRefreshResourceChallenge = "PowerQueryRefreshResourceChallenge",
|
|
65679
65679
|
rangeExceedsLimit = "RangeExceedsLimit",
|
|
65680
|
+
rangeImageExceedsLimit = "RangeImageExceedsLimit",
|
|
65680
65681
|
refreshWorkbookLinksBlocked = "RefreshWorkbookLinksBlocked",
|
|
65681
65682
|
requestAborted = "RequestAborted",
|
|
65682
65683
|
responsePayloadSizeLimitExceeded = "ResponsePayloadSizeLimitExceeded",
|
|
@@ -89357,7 +89358,7 @@ declare namespace Word {
|
|
|
89357
89358
|
* @remarks
|
|
89358
89359
|
* [Api set: WordApi 1.1]
|
|
89359
89360
|
*
|
|
89360
|
-
*
|
|
89361
|
+
* Insertion isn't supported if the document being inserted contains an ActiveX control (likely in a form field). Consider replacing such a form field with a content control or other option appropriate for your scenario.
|
|
89361
89362
|
*
|
|
89362
89363
|
* @param base64File Required. The Base64-encoded content of a .docx file.
|
|
89363
89364
|
* @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'.
|
|
@@ -90579,7 +90580,7 @@ declare namespace Word {
|
|
|
90579
90580
|
* @remarks
|
|
90580
90581
|
* [Api set: WordApi 1.1]
|
|
90581
90582
|
*
|
|
90582
|
-
*
|
|
90583
|
+
* Insertion isn't supported if the document being inserted contains an ActiveX control (likely in a form field). Consider replacing such a form field with a content control or other option appropriate for your scenario.
|
|
90583
90584
|
*
|
|
90584
90585
|
* @param base64File Required. The Base64-encoded content of a .docx file.
|
|
90585
90586
|
* @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'. 'Replace' cannot be used with 'RichTextTable' and 'RichTextTableRow' content controls.
|
|
@@ -95638,7 +95639,7 @@ declare namespace Word {
|
|
|
95638
95639
|
*/
|
|
95639
95640
|
delete(): void;
|
|
95640
95641
|
/**
|
|
95641
|
-
* Returns a new range that extends from this range in either direction to cover another range. This range isn't changed. Throws an `ItemNotFound` error if the two ranges
|
|
95642
|
+
* Returns a new range that extends from this range in either direction to cover another range. This range isn't changed. Throws an `ItemNotFound` error if the two ranges don't have a union.
|
|
95642
95643
|
*
|
|
95643
95644
|
* @remarks
|
|
95644
95645
|
* [Api set: WordApi 1.3]
|
|
@@ -95846,19 +95847,8 @@ declare namespace Word {
|
|
|
95846
95847
|
* @remarks
|
|
95847
95848
|
* [Api set: WordApi 1.5]
|
|
95848
95849
|
*
|
|
95849
|
-
* Important:
|
|
95850
|
-
*
|
|
95851
|
-
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except `Word.FieldType.others`.
|
|
95852
|
-
*
|
|
95853
|
-
* In Word on the web, the API supports inserting and managing the following field types.
|
|
95854
|
-
*
|
|
95855
|
-
* - `Word.FieldType.addin`
|
|
95856
|
-
*
|
|
95857
|
-
* - `Word.FieldType.date`
|
|
95858
|
-
*
|
|
95859
|
-
* - `Word.FieldType.hyperlink`
|
|
95860
|
-
*
|
|
95861
|
-
* - `Word.FieldType.toc`
|
|
95850
|
+
* Important: In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except `Word.FieldType.others`.
|
|
95851
|
+
* In Word on the web, fields are mainly read-only. To learn more, see {@link https://learn.microsoft.com/office/dev/add-ins/word/fields-guidance | Use fields in your Word add-in}.
|
|
95862
95852
|
*
|
|
95863
95853
|
* @param insertLocation Required. The location relative to the range where the field will be inserted. The value must be 'Replace', 'Start', 'End', 'Before', or 'After'.
|
|
95864
95854
|
* @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
|
|
@@ -95872,19 +95862,8 @@ declare namespace Word {
|
|
|
95872
95862
|
* @remarks
|
|
95873
95863
|
* [Api set: WordApi 1.5]
|
|
95874
95864
|
*
|
|
95875
|
-
* Important:
|
|
95876
|
-
*
|
|
95877
|
-
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except `Word.FieldType.others`.
|
|
95878
|
-
*
|
|
95879
|
-
* In Word on the web, the API supports inserting and managing the following field types.
|
|
95880
|
-
*
|
|
95881
|
-
* - `Word.FieldType.addin`
|
|
95882
|
-
*
|
|
95883
|
-
* - `Word.FieldType.date`
|
|
95884
|
-
*
|
|
95885
|
-
* - `Word.FieldType.hyperlink`
|
|
95886
|
-
*
|
|
95887
|
-
* - `Word.FieldType.toc`
|
|
95865
|
+
* Important: In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except `Word.FieldType.others`.
|
|
95866
|
+
* In Word on the web, fields are mainly read-only. To learn more, see {@link https://learn.microsoft.com/office/dev/add-ins/word/fields-guidance | Use fields in your Word add-in}.
|
|
95888
95867
|
*
|
|
95889
95868
|
* @param insertLocation Required. The location relative to the range where the field will be inserted. The value must be 'Replace', 'Start', 'End', 'Before', or 'After'.
|
|
95890
95869
|
* @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
|
|
@@ -95898,7 +95877,7 @@ declare namespace Word {
|
|
|
95898
95877
|
* @remarks
|
|
95899
95878
|
* [Api set: WordApi 1.1]
|
|
95900
95879
|
*
|
|
95901
|
-
*
|
|
95880
|
+
* Insertion isn't supported if the document being inserted contains an ActiveX control (likely in a form field). Consider replacing such a form field with a content control or other option appropriate for your scenario.
|
|
95902
95881
|
*
|
|
95903
95882
|
* @param base64File Required. The Base64-encoded content of a .docx file.
|
|
95904
95883
|
* @param insertLocation Required. The value must be 'Replace', 'Start', 'End', 'Before', or 'After'.
|
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.485",
|
|
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",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
48
|
"peerDependencies": {},
|
|
49
|
-
"typesPublisherContentHash": "
|
|
49
|
+
"typesPublisherContentHash": "596dc9a8608bd7f0ec2f6201da7c62e972f530c93ae4d1c3a3d8346c16550859",
|
|
50
50
|
"typeScriptVersion": "5.0"
|
|
51
51
|
}
|