@types/office-js-preview 1.0.286 → 1.0.289

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: Mon, 14 Feb 2022 22:01:26 GMT
11
+ * Last updated: Tue, 08 Mar 2022 22:01:44 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -1077,6 +1077,17 @@ declare namespace Office {
1077
1077
  * For example, an add-in that handles the `ItemSend` event can set `allowEvent` to `false` to cancel sending of the message.
1078
1078
  */
1079
1079
  allowEvent: boolean;
1080
+
1081
+ /**
1082
+ * A string value. When the completed method is used to signal completion of an event handler and if the `allowEvent` option is set to `false`,
1083
+ * this value sets the error message that will be displayed to the user. For an example, refer to
1084
+ * {@link https://docs.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough | Smart Alerts walkthrough}.
1085
+ *
1086
+ * [Api set: Mailbox preview]
1087
+ *
1088
+ * @beta
1089
+ */
1090
+ errorMessage?: string;
1080
1091
  }
1081
1092
 
1082
1093
  /**
@@ -2365,9 +2376,13 @@ declare namespace Office {
2365
2376
  */
2366
2377
  Text,
2367
2378
  /**
2368
- * Returns the entire document (.pptx, .docx, or .xlsx) in Office Open XML (OOXML) format as a byte array.
2379
+ * Returns the entire document (.pptx, .docx, .xlsx, or .xlsm) in Office Open XML (OOXML) format as a byte array.
2380
+ *
2381
+ * Note: The .xslm file type is supported in Excel on Windows and Mac. It's not supported in Excel on the web.
2382
+ * In Excel on Windows, the file slices from the `getFileAsync` method include the VBA signature files for .xslm file types. The VBA signature files are vbaProjectSignature.bin, vbaProbjectSignatureAgile.bin, and vbaProjectSignatureV3.bin.
2383
+ * In Excel on Mac, the file slices from the `getFileAsync` method don't include the VBA signature files, because this platform doesn't support the VBA signature feature.
2369
2384
  */
2370
- Compressed,
2385
+ Compressed,
2371
2386
  /**
2372
2387
  * Returns the entire document in PDF format as a byte array.
2373
2388
  */
@@ -4117,7 +4132,7 @@ declare namespace Office {
4117
4132
  * <td>`Office.CoercionType.SlideRange`</td>
4118
4133
  * </tr>
4119
4134
  * <tr>
4120
- * <td>Excel, PowerPoint, and Word</td>
4135
+ * <td>Excel on Windows and Mac, PowerPoint on Windows, Mac, and the web, and Word on Windows and Mac</td>
4121
4136
  * <td>`Office.CoercionType.XmlSvg`</td>
4122
4137
  * </tr>
4123
4138
  * </table>
@@ -4209,7 +4224,7 @@ declare namespace Office {
4209
4224
  * <td>`Office.CoercionType.SlideRange`</td>
4210
4225
  * </tr>
4211
4226
  * <tr>
4212
- * <td>Excel, PowerPoint, and Word</td>
4227
+ * <td>Excel on Windows and Mac, PowerPoint on Windows, Mac, and the web, and Word on Windows and Mac</td>
4213
4228
  * <td>`Office.CoercionType.XmlSvg`</td>
4214
4229
  * </tr>
4215
4230
  * </table>
@@ -4449,7 +4464,7 @@ declare namespace Office {
4449
4464
  * <td>`Office.CoercionType.SlideRange`</td>
4450
4465
  * </tr>
4451
4466
  * <tr>
4452
- * <td>Excel, PowerPoint, and Word</td>
4467
+ * <td>Excel on Windows and Mac, PowerPoint on Windows, Mac, and the web, and Word on Windows and Mac</td>
4453
4468
  * <td>`Office.CoercionType.XmlSvg`</td>
4454
4469
  * </tr>
4455
4470
  * </table>
@@ -4638,7 +4653,7 @@ declare namespace Office {
4638
4653
  * <td>`Office.CoercionType.SlideRange`</td>
4639
4654
  * </tr>
4640
4655
  * <tr>
4641
- * <td>Excel, PowerPoint, and Word</td>
4656
+ * <td>Excel on Windows and Mac, PowerPoint on Windows, Mac, and the web, and Word on Windows and Mac</td>
4642
4657
  * <td>`Office.CoercionType.XmlSvg`</td>
4643
4658
  * </tr>
4644
4659
  * </table>
@@ -94545,7 +94560,7 @@ declare namespace Word {
94545
94560
  * Gets or sets a value that indicates whether the comment text is bold.
94546
94561
  *
94547
94562
  * @remarks
94548
- * [Api set: WordApi BETA (PREVIEW ONLY)]
94563
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
94549
94564
  * @beta
94550
94565
  */
94551
94566
  bold?: boolean;
@@ -94553,7 +94568,7 @@ declare namespace Word {
94553
94568
  * Gets the first hyperlink in the range, or sets a hyperlink on the range. All hyperlinks in the range are deleted when you set a new hyperlink on the range.
94554
94569
  *
94555
94570
  * @remarks
94556
- * [Api set: WordApi BETA (PREVIEW ONLY)]
94571
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
94557
94572
  * @beta
94558
94573
  */
94559
94574
  hyperlink?: boolean;
@@ -94561,7 +94576,7 @@ declare namespace Word {
94561
94576
  * Checks whether the range length is zero. Read-only.
94562
94577
  *
94563
94578
  * @remarks
94564
- * [Api set: WordApi BETA (PREVIEW ONLY)]
94579
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
94565
94580
  * @beta
94566
94581
  */
94567
94582
  isEmpty?: boolean;
@@ -94569,7 +94584,7 @@ declare namespace Word {
94569
94584
  * Gets or sets a value that indicates whether the comment text is italicized.
94570
94585
  *
94571
94586
  * @remarks
94572
- * [Api set: WordApi BETA (PREVIEW ONLY)]
94587
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
94573
94588
  * @beta
94574
94589
  */
94575
94590
  italic?: boolean;
@@ -94577,7 +94592,7 @@ declare namespace Word {
94577
94592
  * Gets or sets a value that indicates whether the comment text has a strikethrough.
94578
94593
  *
94579
94594
  * @remarks
94580
- * [Api set: WordApi BETA (PREVIEW ONLY)]
94595
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
94581
94596
  * @beta
94582
94597
  */
94583
94598
  strikeThrough?: boolean;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.286",
3
+ "version": "1.0.289",
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": "149cf1d655b3d137c06c501861ef4478db9e3cbcf3338ee87b67648c27d6f203",
49
- "typeScriptVersion": "3.8"
48
+ "typesPublisherContentHash": "2ec8319aa6b15d8657745139101227ff7eb4b1b4ca4c57a842156697eda77d44",
49
+ "typeScriptVersion": "3.9"
50
50
  }