@types/office-js 1.0.484 → 1.0.486

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 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, 25 Mar 2025 21:03:30 GMT
11
+ * Last updated: Fri, 28 Mar 2025 15:02:12 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
office-js/index.d.ts CHANGED
@@ -89358,7 +89358,7 @@ declare namespace Word {
89358
89358
  * @remarks
89359
89359
  * [Api set: WordApi 1.1]
89360
89360
  *
89361
- * Note: 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
+ * 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.
89362
89362
  *
89363
89363
  * @param base64File Required. The Base64-encoded content of a .docx file.
89364
89364
  * @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'.
@@ -90580,7 +90580,7 @@ declare namespace Word {
90580
90580
  * @remarks
90581
90581
  * [Api set: WordApi 1.1]
90582
90582
  *
90583
- * Note: 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
+ * 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.
90584
90584
  *
90585
90585
  * @param base64File Required. The Base64-encoded content of a .docx file.
90586
90586
  * @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'. 'Replace' cannot be used with 'RichTextTable' and 'RichTextTableRow' content controls.
@@ -92625,8 +92625,8 @@ declare namespace Word {
92625
92625
  *
92626
92626
  * Important: To learn more about which fields can be inserted, see the `Word.Range.insertField` API introduced in requirement set 1.5.
92627
92627
  * Support for managing fields is similar to what's available in the Word UI.
92628
- * 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}),
92629
- * the `Addin` field is editable. To learn more about Word UI clients that more fully support fields,
92628
+ * However, 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}).
92629
+ * To learn more about Word UI clients that more fully support fields,
92630
92630
  * 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}.
92631
92631
  */
92632
92632
  class Field extends OfficeExtension.ClientObject {
@@ -92827,10 +92827,10 @@ declare namespace Word {
92827
92827
  * @remarks
92828
92828
  * [Api set: WordApi 1.4]
92829
92829
  *
92830
- * Important: To learn more about which fields can be inserted, see the `Word.Range.insertField API` introduced in requirement set 1.5.
92830
+ * Important: To learn more about which fields can be inserted, see the `Word.Range.insertField` API introduced in requirement set 1.5.
92831
92831
  * Support for managing fields is similar to what's available in the Word UI.
92832
- * 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}),
92833
- * the `Addin` field is editable. To learn more about Word UI clients that more fully support fields,
92832
+ * However, 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}).
92833
+ * To learn more about Word UI clients that more fully support fields,
92834
92834
  * 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}.
92835
92835
  */
92836
92836
  class FieldCollection extends OfficeExtension.ClientObject {
@@ -95639,7 +95639,7 @@ declare namespace Word {
95639
95639
  */
95640
95640
  delete(): void;
95641
95641
  /**
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 do not have a union.
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.
95643
95643
  *
95644
95644
  * @remarks
95645
95645
  * [Api set: WordApi 1.3]
@@ -95847,19 +95847,8 @@ declare namespace Word {
95847
95847
  * @remarks
95848
95848
  * [Api set: WordApi 1.5]
95849
95849
  *
95850
- * Important:
95851
- *
95852
- * In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except `Word.FieldType.others`.
95853
- *
95854
- * In Word on the web, the API supports inserting and managing the following field types.
95855
- *
95856
- * - `Word.FieldType.addin`
95857
- *
95858
- * - `Word.FieldType.date`
95859
- *
95860
- * - `Word.FieldType.hyperlink`
95861
- *
95862
- * - `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}.
95863
95852
  *
95864
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'.
95865
95854
  * @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
@@ -95873,19 +95862,8 @@ declare namespace Word {
95873
95862
  * @remarks
95874
95863
  * [Api set: WordApi 1.5]
95875
95864
  *
95876
- * Important:
95877
- *
95878
- * In Word on Windows and on Mac, the API supports inserting and managing all types listed in {@link Word.FieldType} except `Word.FieldType.others`.
95879
- *
95880
- * In Word on the web, the API supports inserting and managing the following field types.
95881
- *
95882
- * - `Word.FieldType.addin`
95883
- *
95884
- * - `Word.FieldType.date`
95885
- *
95886
- * - `Word.FieldType.hyperlink`
95887
- *
95888
- * - `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}.
95889
95867
  *
95890
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'.
95891
95869
  * @param fieldType Optional. Can be any FieldType constant. The default value is Empty.
@@ -95899,7 +95877,7 @@ declare namespace Word {
95899
95877
  * @remarks
95900
95878
  * [Api set: WordApi 1.1]
95901
95879
  *
95902
- * Note: 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.
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.
95903
95881
  *
95904
95882
  * @param base64File Required. The Base64-encoded content of a .docx file.
95905
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.484",
3
+ "version": "1.0.486",
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": "a4cf3b5472f18698f69d584ccb66ea7d1e2f2790c9bcc3ac1fc333b06a949904",
49
+ "typesPublisherContentHash": "d34cf76171c1c36e38383ada3fdbe6e7dd1627eb280f2e443cf7c9354ed69e8c",
50
50
  "typeScriptVersion": "5.0"
51
51
  }