@types/office-js 1.0.408 → 1.0.409
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 +46 -26
- 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: Tue, 06 Aug 2024
|
|
11
|
+
* Last updated: Tue, 06 Aug 2024 18:38:34 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -86755,7 +86755,7 @@ declare namespace Word {
|
|
|
86755
86755
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
86756
86756
|
context: RequestContext;
|
|
86757
86757
|
/**
|
|
86758
|
-
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's null otherwise.
|
|
86758
|
+
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's `null` otherwise.
|
|
86759
86759
|
*
|
|
86760
86760
|
* @remarks
|
|
86761
86761
|
* [Api set: WordApi 1.7]
|
|
@@ -88814,7 +88814,11 @@ declare namespace Word {
|
|
|
88814
88814
|
* @remarks
|
|
88815
88815
|
* [Api set: WordApi 1.4]
|
|
88816
88816
|
*
|
|
88817
|
-
* Important: To learn more about which fields can be inserted, see the Word.Range.insertField API introduced in requirement set 1.5.
|
|
88817
|
+
* Important: To learn more about which fields can be inserted, see the `Word.Range.insertField` API introduced in requirement set 1.5.
|
|
88818
|
+
* Support for managing fields is similar to what's available in the Word UI.
|
|
88819
|
+
* However, while the Word UI on the web primarily only supports fields as read-only (see {@link https://support.microsoft.com/office/d8f46094-13c3-4966-98c3-259748f3caf1 | Field codes in Word for the web}),
|
|
88820
|
+
* the `Addin` field is editable. To learn more about Word UI clients that more fully support fields,
|
|
88821
|
+
* see the product list at the beginning of {@link https://support.microsoft.com/office/c429bbb0-8669-48a7-bd24-bab6ba6b06bb | Insert, edit, and view fields in Word}.
|
|
88818
88822
|
*/
|
|
88819
88823
|
class Field extends OfficeExtension.ClientObject {
|
|
88820
88824
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
@@ -88885,7 +88889,7 @@ declare namespace Word {
|
|
|
88885
88889
|
*/
|
|
88886
88890
|
code: string;
|
|
88887
88891
|
/**
|
|
88888
|
-
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is null and it will throw a general exception when code attempts to set it.
|
|
88892
|
+
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is `null` and it will throw a general exception when code attempts to set it.
|
|
88889
88893
|
*
|
|
88890
88894
|
* @remarks
|
|
88891
88895
|
* [Api set: WordApi 1.5]
|
|
@@ -89007,7 +89011,11 @@ declare namespace Word {
|
|
|
89007
89011
|
* @remarks
|
|
89008
89012
|
* [Api set: WordApi 1.4]
|
|
89009
89013
|
*
|
|
89010
|
-
* Important: To learn more about which fields can be inserted, see the Word.Range.insertField API introduced in requirement set 1.5.
|
|
89014
|
+
* Important: To learn more about which fields can be inserted, see the `Word.Range.insertField API` introduced in requirement set 1.5.
|
|
89015
|
+
* Support for managing fields is similar to what's available in the Word UI.
|
|
89016
|
+
* However, while the Word UI on the web primarily only supports fields as read-only (see {@link https://support.microsoft.com/office/d8f46094-13c3-4966-98c3-259748f3caf1 | Field codes in Word for the web}),
|
|
89017
|
+
* the `Addin` field is editable. To learn more about Word UI clients that more fully support fields,
|
|
89018
|
+
* see the product list at the beginning of {@link https://support.microsoft.com/office/c429bbb0-8669-48a7-bd24-bab6ba6b06bb | Insert, edit, and view fields in Word}.
|
|
89011
89019
|
*/
|
|
89012
89020
|
class FieldCollection extends OfficeExtension.ClientObject {
|
|
89013
89021
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
@@ -89100,7 +89108,7 @@ declare namespace Word {
|
|
|
89100
89108
|
*/
|
|
89101
89109
|
doubleStrikeThrough: boolean;
|
|
89102
89110
|
/**
|
|
89103
|
-
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
89111
|
+
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or `null` for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
89104
89112
|
*
|
|
89105
89113
|
* @remarks
|
|
89106
89114
|
* [Api set: WordApi 1.1]
|
|
@@ -91271,17 +91279,17 @@ declare namespace Word {
|
|
|
91271
91279
|
*
|
|
91272
91280
|
* Important:
|
|
91273
91281
|
*
|
|
91274
|
-
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others
|
|
91282
|
+
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except `Word.FieldType.others`.
|
|
91275
91283
|
*
|
|
91276
91284
|
* In Word on the web, the API supports inserting and managing the following field types.
|
|
91277
91285
|
*
|
|
91278
|
-
* - Word.FieldType.addin
|
|
91286
|
+
* - `Word.FieldType.addin`
|
|
91279
91287
|
*
|
|
91280
|
-
* - Word.FieldType.date
|
|
91288
|
+
* - `Word.FieldType.date`
|
|
91281
91289
|
*
|
|
91282
|
-
* - Word.FieldType.hyperlink
|
|
91290
|
+
* - `Word.FieldType.hyperlink`
|
|
91283
91291
|
*
|
|
91284
|
-
* - Word.FieldType.toc
|
|
91292
|
+
* - `Word.FieldType.toc`
|
|
91285
91293
|
*
|
|
91286
91294
|
* @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'.
|
|
91287
91295
|
* @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
|
|
@@ -91297,17 +91305,17 @@ declare namespace Word {
|
|
|
91297
91305
|
*
|
|
91298
91306
|
* Important:
|
|
91299
91307
|
*
|
|
91300
|
-
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others
|
|
91308
|
+
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except `Word.FieldType.others`.
|
|
91301
91309
|
*
|
|
91302
91310
|
* In Word on the web, the API supports inserting and managing the following field types.
|
|
91303
91311
|
*
|
|
91304
|
-
* - Word.FieldType.addin
|
|
91312
|
+
* - `Word.FieldType.addin`
|
|
91305
91313
|
*
|
|
91306
|
-
* - Word.FieldType.date
|
|
91314
|
+
* - `Word.FieldType.date`
|
|
91307
91315
|
*
|
|
91308
|
-
* - Word.FieldType.hyperlink
|
|
91316
|
+
* - `Word.FieldType.hyperlink`
|
|
91309
91317
|
*
|
|
91310
|
-
* - Word.FieldType.toc
|
|
91318
|
+
* - `Word.FieldType.toc`
|
|
91311
91319
|
*
|
|
91312
91320
|
* @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'.
|
|
91313
91321
|
* @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
|
|
@@ -97061,7 +97069,7 @@ declare namespace Word {
|
|
|
97061
97069
|
/** An interface for updating data on the `ContentControl` object, for use in `contentControl.set({ ... })`. */
|
|
97062
97070
|
interface ContentControlUpdateData {
|
|
97063
97071
|
/**
|
|
97064
|
-
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's null otherwise.
|
|
97072
|
+
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's `null` otherwise.
|
|
97065
97073
|
*
|
|
97066
97074
|
* @remarks
|
|
97067
97075
|
* [Api set: WordApi 1.7]
|
|
@@ -97299,7 +97307,7 @@ declare namespace Word {
|
|
|
97299
97307
|
*/
|
|
97300
97308
|
code?: string;
|
|
97301
97309
|
/**
|
|
97302
|
-
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is null and it will throw a general exception when code attempts to set it.
|
|
97310
|
+
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is `null` and it will throw a general exception when code attempts to set it.
|
|
97303
97311
|
*
|
|
97304
97312
|
* @remarks
|
|
97305
97313
|
* [Api set: WordApi 1.5]
|
|
@@ -97341,7 +97349,7 @@ declare namespace Word {
|
|
|
97341
97349
|
*/
|
|
97342
97350
|
doubleStrikeThrough?: boolean;
|
|
97343
97351
|
/**
|
|
97344
|
-
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
97352
|
+
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or `null` for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
97345
97353
|
*
|
|
97346
97354
|
* @remarks
|
|
97347
97355
|
* [Api set: WordApi 1.1]
|
|
@@ -98473,7 +98481,7 @@ declare namespace Word {
|
|
|
98473
98481
|
/** An interface describing the data returned by calling `contentControl.toJSON()`. */
|
|
98474
98482
|
interface ContentControlData {
|
|
98475
98483
|
/**
|
|
98476
|
-
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's null otherwise.
|
|
98484
|
+
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's `null` otherwise.
|
|
98477
98485
|
*
|
|
98478
98486
|
* @remarks
|
|
98479
98487
|
* [Api set: WordApi 1.7]
|
|
@@ -98947,7 +98955,7 @@ declare namespace Word {
|
|
|
98947
98955
|
*/
|
|
98948
98956
|
code?: string;
|
|
98949
98957
|
/**
|
|
98950
|
-
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is null and it will throw a general exception when code attempts to set it.
|
|
98958
|
+
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is `null` and it will throw a general exception when code attempts to set it.
|
|
98951
98959
|
*
|
|
98952
98960
|
* @remarks
|
|
98953
98961
|
* [Api set: WordApi 1.5]
|
|
@@ -99003,7 +99011,7 @@ declare namespace Word {
|
|
|
99003
99011
|
*/
|
|
99004
99012
|
doubleStrikeThrough?: boolean;
|
|
99005
99013
|
/**
|
|
99006
|
-
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
99014
|
+
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or `null` for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
99007
99015
|
*
|
|
99008
99016
|
* @remarks
|
|
99009
99017
|
* [Api set: WordApi 1.1]
|
|
@@ -100653,7 +100661,7 @@ declare namespace Word {
|
|
|
100653
100661
|
*/
|
|
100654
100662
|
$all?: boolean;
|
|
100655
100663
|
/**
|
|
100656
|
-
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's null otherwise.
|
|
100664
|
+
* Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's `null` otherwise.
|
|
100657
100665
|
*
|
|
100658
100666
|
* @remarks
|
|
100659
100667
|
* [Api set: WordApi 1.7]
|
|
@@ -100828,7 +100836,7 @@ declare namespace Word {
|
|
|
100828
100836
|
*/
|
|
100829
100837
|
$all?: boolean;
|
|
100830
100838
|
/**
|
|
100831
|
-
* For EACH ITEM in the collection: Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's null otherwise.
|
|
100839
|
+
* For EACH ITEM in the collection: Specifies the checkbox-related data if the content control's type is 'CheckBox'. It's `null` otherwise.
|
|
100832
100840
|
*
|
|
100833
100841
|
* @remarks
|
|
100834
100842
|
* [Api set: WordApi 1.7]
|
|
@@ -101344,6 +101352,12 @@ declare namespace Word {
|
|
|
101344
101352
|
*
|
|
101345
101353
|
* @remarks
|
|
101346
101354
|
* [Api set: WordApi 1.4]
|
|
101355
|
+
*
|
|
101356
|
+
* Important: To learn more about which fields can be inserted, see the `Word.Range.insertField` API introduced in requirement set 1.5.
|
|
101357
|
+
* Support for managing fields is similar to what's available in the Word UI.
|
|
101358
|
+
* However, while the Word UI on the web primarily only supports fields as read-only (see {@link https://support.microsoft.com/office/d8f46094-13c3-4966-98c3-259748f3caf1 | Field codes in Word for the web}),
|
|
101359
|
+
* the `Addin` field is editable. To learn more about Word UI clients that more fully support fields,
|
|
101360
|
+
* see the product list at the beginning of {@link https://support.microsoft.com/office/c429bbb0-8669-48a7-bd24-bab6ba6b06bb | Insert, edit, and view fields in Word}.
|
|
101347
101361
|
*/
|
|
101348
101362
|
interface FieldLoadOptions {
|
|
101349
101363
|
/**
|
|
@@ -101416,7 +101430,7 @@ declare namespace Word {
|
|
|
101416
101430
|
*/
|
|
101417
101431
|
code?: boolean;
|
|
101418
101432
|
/**
|
|
101419
|
-
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is null and it will throw a general exception when code attempts to set it.
|
|
101433
|
+
* Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is `null` and it will throw a general exception when code attempts to set it.
|
|
101420
101434
|
*
|
|
101421
101435
|
* @remarks
|
|
101422
101436
|
* [Api set: WordApi 1.5]
|
|
@@ -101449,6 +101463,12 @@ declare namespace Word {
|
|
|
101449
101463
|
*
|
|
101450
101464
|
* @remarks
|
|
101451
101465
|
* [Api set: WordApi 1.4]
|
|
101466
|
+
*
|
|
101467
|
+
* Important: To learn more about which fields can be inserted, see the `Word.Range.insertField API` introduced in requirement set 1.5.
|
|
101468
|
+
* Support for managing fields is similar to what's available in the Word UI.
|
|
101469
|
+
* However, while the Word UI on the web primarily only supports fields as read-only (see {@link https://support.microsoft.com/office/d8f46094-13c3-4966-98c3-259748f3caf1 | Field codes in Word for the web}),
|
|
101470
|
+
* the `Addin` field is editable. To learn more about Word UI clients that more fully support fields,
|
|
101471
|
+
* see the product list at the beginning of {@link https://support.microsoft.com/office/c429bbb0-8669-48a7-bd24-bab6ba6b06bb | Insert, edit, and view fields in Word}.
|
|
101452
101472
|
*/
|
|
101453
101473
|
interface FieldCollectionLoadOptions {
|
|
101454
101474
|
/**
|
|
@@ -101521,7 +101541,7 @@ declare namespace Word {
|
|
|
101521
101541
|
*/
|
|
101522
101542
|
code?: boolean;
|
|
101523
101543
|
/**
|
|
101524
|
-
* For EACH ITEM in the collection: Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is null and it will throw a general exception when code attempts to set it.
|
|
101544
|
+
* For EACH ITEM in the collection: Specifies data in an "Addin" field. If the field isn't an "Addin" field, it is `null` and it will throw a general exception when code attempts to set it.
|
|
101525
101545
|
*
|
|
101526
101546
|
* @remarks
|
|
101527
101547
|
* [Api set: WordApi 1.5]
|
|
@@ -101582,7 +101602,7 @@ declare namespace Word {
|
|
|
101582
101602
|
*/
|
|
101583
101603
|
doubleStrikeThrough?: boolean;
|
|
101584
101604
|
/**
|
|
101585
|
-
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
101605
|
+
* Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or `null` for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
|
|
101586
101606
|
*
|
|
101587
101607
|
* @remarks
|
|
101588
101608
|
* [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.409",
|
|
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",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "273ff211d3ebf22d6944a287f7172304f882e6030c18a725d595a1073e4c18dd",
|
|
49
49
|
"typeScriptVersion": "4.8"
|
|
50
50
|
}
|