@types/office-js-preview 1.0.377 → 1.0.379

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.
@@ -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-preview.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 09 Mar 2023 21:32:39 GMT
11
+ * Last updated: Tue, 11 Apr 2023 23:03:25 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -718,7 +718,7 @@ declare namespace Office {
718
718
  * This method only requests that the tab be registered. The actual registration is controlled by the Office application and may not be complete when the returned `Promise` object is resolved.
719
719
  * For more information and code examples, see {@link https://learn.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
720
720
  *
721
- * @param tabDefinition - Specifies the tab's properties and child controls and their properties. Pass a JSON string that conforms to the Office dynamic-ribbon JSON schema to `JSON.parse`, and then pass the returned object to this method.
721
+ * @param tabDefinition - Specifies the tab's properties and child controls and their properties. This parameter isn't strongly typed because its shape is defined by a JSON schema that can be versioned. To create the parameter object, pass a JSON string that conforms to the Office {@link https://developer.microsoft.com/json-schemas/office-js/dynamic-ribbon.schema.json | dynamic-ribbon JSON schema} to `JSON.parse`, and then pass the returned object to this method. To get IntelliSense for the JSON in Visual Studio Code, see {@link https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings | Editing JSON with Visual Studio Code - JSON schemas and settings }.
722
722
  */
723
723
  requestCreateControls(tabDefinition: Object): Promise<void>;
724
724
  /**
@@ -87713,7 +87713,7 @@ declare namespace Word {
87713
87713
  *
87714
87714
  * @param options Optional. Options that define which content controls are returned.
87715
87715
  */
87716
- getContentControls(options?: Word.GetContentControlsOptions): Word.ContentControlCollection;
87716
+ getContentControls(options?: Word.ContentControlOptions): Word.ContentControlCollection;
87717
87717
  /**
87718
87718
  * Gets an HTML representation of the body object. When rendered in a web page or HTML viewer, the formatting will be a close, but not exact, match for of the formatting of the document. This method does not return the exact same HTML for the same document on different platforms (Windows, Mac, Word on the web, etc.). If you need exact fidelity, or consistency across platforms, use `Body.getOoxml()` and convert the returned XML to HTML.
87719
87719
  *
@@ -88689,7 +88689,7 @@ declare namespace Word {
88689
88689
  *
88690
88690
  * @param options Optional. Options that define which content controls are returned.
88691
88691
  */
88692
- getContentControls(options?: Word.GetContentControlsOptions): Word.ContentControlCollection;
88692
+ getContentControls(options?: Word.ContentControlOptions): Word.ContentControlCollection;
88693
88693
  /**
88694
88694
  * Gets an HTML representation of the content control object. When rendered in a web page or HTML viewer, the formatting will be a close, but not exact, match for of the formatting of the document. This method does not return the exact same HTML for the same document on different platforms (Windows, Mac, Word on the web, etc.). If you need exact fidelity, or consistency across platforms, use `ContentControl.getOoxml()` and convert the returned XML to HTML.
88695
88695
  *
@@ -89124,7 +89124,7 @@ declare namespace Word {
89124
89124
  * [Api set: WordApi BETA (PREVIEW ONLY)]
89125
89125
  * @beta
89126
89126
  */
89127
- interface GetContentControlsOptions {
89127
+ interface ContentControlOptions {
89128
89128
  /**
89129
89129
  * An array of content control types, item must be 'RichText' or 'PlainText'.
89130
89130
  *
@@ -89898,7 +89898,7 @@ declare namespace Word {
89898
89898
  *
89899
89899
  * @param options Optional. Options that define which content controls are returned.
89900
89900
  */
89901
- getContentControls(options?: Word.GetContentControlsOptions): Word.ContentControlCollection;
89901
+ getContentControls(options?: Word.ContentControlOptions): Word.ContentControlCollection;
89902
89902
  /**
89903
89903
  * Gets the document's endnotes in a single body.
89904
89904
  Not implemented in Word on the web.
@@ -89950,7 +89950,7 @@ declare namespace Word {
89950
89950
  * [Api set: WordApi 1.1]
89951
89951
  *
89952
89952
  * @param saveBehavior Optional. The save behavior must be 'Save' or 'Prompt'. Default value is 'Save'.
89953
- * @param fileName Optional. The file name. Only takes effect for a new document.
89953
+ * @param fileName Optional. The file name (exclude file extension). Only takes effect for a new document.
89954
89954
  */
89955
89955
  save(saveBehavior?: Word.SaveBehavior, fileName?: string): void;
89956
89956
  /**
@@ -89960,7 +89960,7 @@ declare namespace Word {
89960
89960
  * [Api set: WordApi 1.1]
89961
89961
  *
89962
89962
  * @param saveBehavior Optional. The save behavior must be 'Save' or 'Prompt'. Default value is 'Save'.
89963
- * @param fileName Optional. The file name. Only takes effect for a new document.
89963
+ * @param fileName Optional. The file name (exclude file extension). Only takes effect for a new document.
89964
89964
  */
89965
89965
  save(saveBehavior?: "Save" | "Prompt", fileName?: string): void;
89966
89966
  /**
@@ -90148,7 +90148,7 @@ declare namespace Word {
90148
90148
  *
90149
90149
  * @param options Optional. Options that define which content controls are returned.
90150
90150
  */
90151
- getContentControls(options?: Word.GetContentControlsOptions): Word.ContentControlCollection;
90151
+ getContentControls(options?: Word.ContentControlOptions): Word.ContentControlCollection;
90152
90152
  /**
90153
90153
  * Gets a StyleCollection object that represents the whole style set of the document.
90154
90154
  *
@@ -90184,7 +90184,7 @@ declare namespace Word {
90184
90184
  * [Api set: WordApiHiddenDocument 1.3]
90185
90185
  *
90186
90186
  * @param saveBehavior Optional. DocumentCreated only supports 'Save'.
90187
- * @param fileName Optional. The file name. Only takes effect for a new document.
90187
+ * @param fileName Optional. The file name (exclude file extension). Only takes effect for a new document.
90188
90188
  */
90189
90189
  save(saveBehavior?: Word.SaveBehavior, fileName?: string): void;
90190
90190
  /**
@@ -90194,7 +90194,7 @@ declare namespace Word {
90194
90194
  * [Api set: WordApiHiddenDocument 1.3]
90195
90195
  *
90196
90196
  * @param saveBehavior Optional. DocumentCreated only supports 'Save'.
90197
- * @param fileName Optional. The file name. Only takes effect for a new document.
90197
+ * @param fileName Optional. The file name (exclude file extension). Only takes effect for a new document.
90198
90198
  */
90199
90199
  save(saveBehavior?: "Save" | "Prompt", fileName?: string): void;
90200
90200
  /**
@@ -92281,7 +92281,7 @@ declare namespace Word {
92281
92281
  *
92282
92282
  * @param options Optional. Options that define which content controls are returned.
92283
92283
  */
92284
- getContentControls(options?: Word.GetContentControlsOptions): Word.ContentControlCollection;
92284
+ getContentControls(options?: Word.ContentControlOptions): Word.ContentControlCollection;
92285
92285
  /**
92286
92286
  * Gets an HTML representation of the paragraph object. When rendered in a web page or HTML viewer, the formatting will be a close, but not exact, match for of the formatting of the document. This method does not return the exact same HTML for the same document on different platforms (Windows, Mac, Word on the web, etc.). If you need exact fidelity, or consistency across platforms, use `Paragraph.getOoxml()` and convert the returned XML to HTML.
92287
92287
  *
@@ -93060,7 +93060,7 @@ declare namespace Word {
93060
93060
  *
93061
93061
  * @param options Optional. Options that define which content controls are returned.
93062
93062
  */
93063
- getContentControls(options?: Word.GetContentControlsOptions): Word.ContentControlCollection;
93063
+ getContentControls(options?: Word.ContentControlOptions): Word.ContentControlCollection;
93064
93064
  /**
93065
93065
  * Gets an HTML representation of the range object. When rendered in a web page or HTML viewer, the formatting will be a close, but not exact, match for of the formatting of the document. This method does not return the exact same HTML for the same document on different platforms (Windows, Mac, Word on the web, etc.). If you need exact fidelity, or consistency across platforms, use `Range.getOoxml()` and convert the returned XML to HTML.
93066
93066
  *
@@ -93500,7 +93500,7 @@ declare namespace Word {
93500
93500
  */
93501
93501
  interface InsertFileOptions {
93502
93502
  /**
93503
- * Represents whether the change tracking mode from the source document should be imported.
93503
+ * Represents whether the change tracking mode status from the source document should be imported.
93504
93504
  *
93505
93505
  * @remarks
93506
93506
  * [Api set: WordApi BETA (PREVIEW ONLY)]
@@ -94156,7 +94156,7 @@ declare namespace Word {
94156
94156
  * [Api set: WordApi BETA (PREVIEW ONLY)]
94157
94157
  * @beta
94158
94158
  */
94159
- readonly styleType: Word.StyleType | "Character" | "List" | "Paragraph" | "Table";
94159
+ readonly type: Word.StyleType | "Character" | "List" | "Paragraph" | "Table";
94160
94160
  /**
94161
94161
  * Gets or sets whether the specified style is made visible as a recommended style in the Styles and in the Styles task pane in Microsoft Word after it's used in the document.
94162
94162
  *
@@ -101817,7 +101817,7 @@ declare namespace Word {
101817
101817
  * [Api set: WordApi BETA (PREVIEW ONLY)]
101818
101818
  * @beta
101819
101819
  */
101820
- styleType?: Word.StyleType | "Character" | "List" | "Paragraph" | "Table";
101820
+ type?: Word.StyleType | "Character" | "List" | "Paragraph" | "Table";
101821
101821
  /**
101822
101822
  * Gets or sets whether the specified style is made visible as a recommended style in the Styles and in the Styles task pane in Microsoft Word after it's used in the document.
101823
101823
  *
@@ -105182,7 +105182,7 @@ declare namespace Word {
105182
105182
  * [Api set: WordApi BETA (PREVIEW ONLY)]
105183
105183
  * @beta
105184
105184
  */
105185
- styleType?: boolean;
105185
+ type?: boolean;
105186
105186
  /**
105187
105187
  * For EACH ITEM in the collection: Gets or sets whether the specified style is made visible as a recommended style in the Styles and in the Styles task pane in Microsoft Word after it's used in the document.
105188
105188
  *
@@ -105314,7 +105314,7 @@ declare namespace Word {
105314
105314
  * [Api set: WordApi BETA (PREVIEW ONLY)]
105315
105315
  * @beta
105316
105316
  */
105317
- styleType?: boolean;
105317
+ type?: boolean;
105318
105318
  /**
105319
105319
  * Gets or sets whether the specified style is made visible as a recommended style in the Styles and in the Styles task pane in Microsoft Word after it's used in the document.
105320
105320
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.377",
3
+ "version": "1.0.379",
4
4
  "description": "TypeScript definitions for Office.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "7176c843b8384af543ec345483b02f476b1303b35766ab426e6f2c7867efed34",
49
- "typeScriptVersion": "4.2"
48
+ "typesPublisherContentHash": "f6cac7ee561007c280c025efc33c2f0947230ed1ea49bc5f69cc6c71913ba505",
49
+ "typeScriptVersion": "4.3"
50
50
  }