@types/office-js 1.0.350 → 1.0.352
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 +2 -3
- office-js/index.d.ts +40 -19
- office-js/package.json +15 -15
office-js/README.md
CHANGED
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
> `npm install --save @types/office-js`
|
|
3
3
|
|
|
4
4
|
# Summary
|
|
5
|
-
This package contains type definitions for
|
|
5
|
+
This package contains type definitions for office-js (https://github.com/OfficeDev/office-js).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
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: Thu, 19 Oct 2023 14:43:10 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
|
-
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
13
|
|
|
15
14
|
# Credits
|
|
16
15
|
These definitions were written by [OfficeDev](https://github.com/OfficeDev), [Ricky Kirkham](https://github.com/Rick-Kirkham), [Alex Jerabek](https://github.com/AlexJerabek), [Elizabeth Samuel](https://github.com/ElizabethSamuel-MSFT), [Alison McKay](https://github.com/alison-mk), and [Sam Ramon](https://github.com/samantharamon).
|
office-js/index.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
// Type definitions for Office.js 1.0
|
|
2
|
-
// Project: https://github.com/OfficeDev/office-js
|
|
3
|
-
// Definitions by: OfficeDev <https://github.com/OfficeDev>,
|
|
4
|
-
// Ricky Kirkham <https://github.com/Rick-Kirkham>,
|
|
5
|
-
// Alex Jerabek <https://github.com/AlexJerabek>,
|
|
6
|
-
// Elizabeth Samuel <https://github.com/ElizabethSamuel-MSFT>,
|
|
7
|
-
// Alison McKay <https://github.com/alison-mk>,
|
|
8
|
-
// Sam Ramon <https://github.com/samantharamon>
|
|
9
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
10
|
-
// TypeScript Version: 2.4
|
|
11
|
-
|
|
12
1
|
/*
|
|
13
2
|
office-js
|
|
14
3
|
Copyright (c) Microsoft Corporation
|
|
@@ -86569,6 +86558,8 @@ declare namespace Word {
|
|
|
86569
86558
|
*
|
|
86570
86559
|
* @remarks
|
|
86571
86560
|
* [Api set: WordApi 1.4]
|
|
86561
|
+
*
|
|
86562
|
+
* Important: To learn more about which fields can be inserted, see the Word.Range.insertField API introduced in requirement set 1.5. Support for managing fields is similar to what's available in the Word UI. 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}), the `Addin` field is editable. To learn more about Word UI clients that more fully support fields, 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}.
|
|
86572
86563
|
*/
|
|
86573
86564
|
class Field extends OfficeExtension.ClientObject {
|
|
86574
86565
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
@@ -86760,6 +86751,8 @@ declare namespace Word {
|
|
|
86760
86751
|
*
|
|
86761
86752
|
* @remarks
|
|
86762
86753
|
* [Api set: WordApi 1.4]
|
|
86754
|
+
*
|
|
86755
|
+
* Important: To learn more about which fields can be inserted, see the Word.Range.insertField API introduced in requirement set 1.5. Support for managing fields is similar to what's available in the Word UI. 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}), the `Addin` field is editable. To learn more about Word UI clients that more fully support fields, 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}.
|
|
86763
86756
|
*/
|
|
86764
86757
|
class FieldCollection extends OfficeExtension.ClientObject {
|
|
86765
86758
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
@@ -87879,7 +87872,7 @@ declare namespace Word {
|
|
|
87879
87872
|
*/
|
|
87880
87873
|
readonly listItemOrNullObject: Word.ListItem;
|
|
87881
87874
|
/**
|
|
87882
|
-
* Gets the List to which this paragraph belongs. If the paragraph
|
|
87875
|
+
* Gets the List to which this paragraph belongs. If the paragraph isn't in a list, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
87883
87876
|
*
|
|
87884
87877
|
* @remarks
|
|
87885
87878
|
* [Api set: WordApi 1.3]
|
|
@@ -88956,6 +88949,20 @@ declare namespace Word {
|
|
|
88956
88949
|
* @remarks
|
|
88957
88950
|
* [Api set: WordApi 1.5]
|
|
88958
88951
|
*
|
|
88952
|
+
* Important:
|
|
88953
|
+
*
|
|
88954
|
+
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others.
|
|
88955
|
+
*
|
|
88956
|
+
* In Word on the web, the API supports inserting and managing the following field types.
|
|
88957
|
+
*
|
|
88958
|
+
* - Word.FieldType.addin
|
|
88959
|
+
*
|
|
88960
|
+
* - Word.FieldType.date
|
|
88961
|
+
*
|
|
88962
|
+
* - Word.FieldType.hyperlink
|
|
88963
|
+
*
|
|
88964
|
+
* - Word.FieldType.toc
|
|
88965
|
+
*
|
|
88959
88966
|
* @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'.
|
|
88960
88967
|
* @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
|
|
88961
88968
|
* @param text Optional. Additional properties or options if needed for specified field type.
|
|
@@ -88968,6 +88975,20 @@ declare namespace Word {
|
|
|
88968
88975
|
* @remarks
|
|
88969
88976
|
* [Api set: WordApi 1.5]
|
|
88970
88977
|
*
|
|
88978
|
+
* Important:
|
|
88979
|
+
*
|
|
88980
|
+
* In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except Word.FieldType.others.
|
|
88981
|
+
*
|
|
88982
|
+
* In Word on the web, the API supports inserting and managing the following field types.
|
|
88983
|
+
*
|
|
88984
|
+
* - Word.FieldType.addin
|
|
88985
|
+
*
|
|
88986
|
+
* - Word.FieldType.date
|
|
88987
|
+
*
|
|
88988
|
+
* - Word.FieldType.hyperlink
|
|
88989
|
+
*
|
|
88990
|
+
* - Word.FieldType.toc
|
|
88991
|
+
*
|
|
88971
88992
|
* @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'.
|
|
88972
88993
|
* @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
|
|
88973
88994
|
* @param text Optional. Additional properties or options if needed for specified field type.
|
|
@@ -89980,14 +90001,14 @@ declare namespace Word {
|
|
|
89980
90001
|
*/
|
|
89981
90002
|
readonly parentTableCell: Word.TableCell;
|
|
89982
90003
|
/**
|
|
89983
|
-
* Gets the table cell that contains this table. If it
|
|
90004
|
+
* Gets the table cell that contains this table. If it isn't contained in a table cell, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
89984
90005
|
*
|
|
89985
90006
|
* @remarks
|
|
89986
90007
|
* [Api set: WordApi 1.3]
|
|
89987
90008
|
*/
|
|
89988
90009
|
readonly parentTableCellOrNullObject: Word.TableCell;
|
|
89989
90010
|
/**
|
|
89990
|
-
* Gets the table that contains this table. If it
|
|
90011
|
+
* Gets the table that contains this table. If it isn't contained in a table, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
89991
90012
|
*
|
|
89992
90013
|
* @remarks
|
|
89993
90014
|
* [Api set: WordApi 1.3]
|
|
@@ -90233,7 +90254,7 @@ declare namespace Word {
|
|
|
90233
90254
|
*/
|
|
90234
90255
|
getCell(rowIndex: number, cellIndex: number): Word.TableCell;
|
|
90235
90256
|
/**
|
|
90236
|
-
* Gets the table cell at a specified row and column. If the specified table cell
|
|
90257
|
+
* Gets the table cell at a specified row and column. If the specified table cell doesn't exist, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
90237
90258
|
*
|
|
90238
90259
|
* @remarks
|
|
90239
90260
|
* [Api set: WordApi 1.3]
|
|
@@ -97412,14 +97433,14 @@ declare namespace Word {
|
|
|
97412
97433
|
*/
|
|
97413
97434
|
parentTableCell?: Word.Interfaces.TableCellLoadOptions;
|
|
97414
97435
|
/**
|
|
97415
|
-
* Gets the table cell that contains the content control. If it
|
|
97436
|
+
* Gets the table cell that contains the content control. If it isn't contained in a table cell, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
97416
97437
|
*
|
|
97417
97438
|
* @remarks
|
|
97418
97439
|
* [Api set: WordApi 1.3]
|
|
97419
97440
|
*/
|
|
97420
97441
|
parentTableCellOrNullObject?: Word.Interfaces.TableCellLoadOptions;
|
|
97421
97442
|
/**
|
|
97422
|
-
* Gets the table that contains the content control. If it
|
|
97443
|
+
* Gets the table that contains the content control. If it isn't contained in a table, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
97423
97444
|
*
|
|
97424
97445
|
* @remarks
|
|
97425
97446
|
* [Api set: WordApi 1.3]
|
|
@@ -97578,14 +97599,14 @@ declare namespace Word {
|
|
|
97578
97599
|
*/
|
|
97579
97600
|
parentTableCell?: Word.Interfaces.TableCellLoadOptions;
|
|
97580
97601
|
/**
|
|
97581
|
-
* For EACH ITEM in the collection: Gets the table cell that contains the content control. If it
|
|
97602
|
+
* For EACH ITEM in the collection: Gets the table cell that contains the content control. If it isn't contained in a table cell, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
97582
97603
|
*
|
|
97583
97604
|
* @remarks
|
|
97584
97605
|
* [Api set: WordApi 1.3]
|
|
97585
97606
|
*/
|
|
97586
97607
|
parentTableCellOrNullObject?: Word.Interfaces.TableCellLoadOptions;
|
|
97587
97608
|
/**
|
|
97588
|
-
* For EACH ITEM in the collection: Gets the table that contains the content control. If it
|
|
97609
|
+
* For EACH ITEM in the collection: Gets the table that contains the content control. If it isn't contained in a table, then this method will return an object with its `isNullObject` property set to `true`. For further information, see {@link https://learn.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
|
|
97589
97610
|
*
|
|
97590
97611
|
* @remarks
|
|
97591
97612
|
* [Api set: WordApi 1.3]
|
office-js/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "TypeScript definitions for
|
|
3
|
+
"version": "1.0.352",
|
|
4
|
+
"description": "TypeScript definitions for office-js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"contributors": [
|
|
8
8
|
{
|
|
9
9
|
"name": "OfficeDev",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"githubUsername": "OfficeDev",
|
|
11
|
+
"url": "https://github.com/OfficeDev"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"name": "Ricky Kirkham",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"githubUsername": "Rick-Kirkham",
|
|
16
|
+
"url": "https://github.com/Rick-Kirkham"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"name": "Alex Jerabek",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"githubUsername": "AlexJerabek",
|
|
21
|
+
"url": "https://github.com/AlexJerabek"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "Elizabeth Samuel",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"githubUsername": "ElizabethSamuel-MSFT",
|
|
26
|
+
"url": "https://github.com/ElizabethSamuel-MSFT"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"name": "Alison McKay",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"githubUsername": "alison-mk",
|
|
31
|
+
"url": "https://github.com/alison-mk"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"name": "Sam Ramon",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
35
|
+
"githubUsername": "samantharamon",
|
|
36
|
+
"url": "https://github.com/samantharamon"
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
39
|
"main": "",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "b6e786b24b3da047dbc7f5d4b6abcbd9aa0ceda7fa6e53862fb1ea6889b9983b",
|
|
49
49
|
"typeScriptVersion": "4.5"
|
|
50
50
|
}
|