@types/office-js-preview 1.0.287 → 1.0.290
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-preview/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-preview.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 18 Mar 2022 15:31:47 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js-preview/index.d.ts
CHANGED
|
@@ -1010,11 +1010,11 @@ declare namespace Office {
|
|
|
1010
1010
|
*/
|
|
1011
1011
|
code: number;
|
|
1012
1012
|
/**
|
|
1013
|
-
* Gets
|
|
1013
|
+
* Gets a detailed description of the error.
|
|
1014
1014
|
*/
|
|
1015
1015
|
message: string;
|
|
1016
1016
|
/**
|
|
1017
|
-
* Gets
|
|
1017
|
+
* Gets the name of the error.
|
|
1018
1018
|
*/
|
|
1019
1019
|
name: string;
|
|
1020
1020
|
}
|
|
@@ -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
|
/**
|
|
@@ -94549,7 +94560,7 @@ declare namespace Word {
|
|
|
94549
94560
|
* Gets or sets a value that indicates whether the comment text is bold.
|
|
94550
94561
|
*
|
|
94551
94562
|
* @remarks
|
|
94552
|
-
* [Api set:
|
|
94563
|
+
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
94553
94564
|
* @beta
|
|
94554
94565
|
*/
|
|
94555
94566
|
bold?: boolean;
|
|
@@ -94557,7 +94568,7 @@ declare namespace Word {
|
|
|
94557
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.
|
|
94558
94569
|
*
|
|
94559
94570
|
* @remarks
|
|
94560
|
-
* [Api set:
|
|
94571
|
+
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
94561
94572
|
* @beta
|
|
94562
94573
|
*/
|
|
94563
94574
|
hyperlink?: boolean;
|
|
@@ -94565,7 +94576,7 @@ declare namespace Word {
|
|
|
94565
94576
|
* Checks whether the range length is zero. Read-only.
|
|
94566
94577
|
*
|
|
94567
94578
|
* @remarks
|
|
94568
|
-
* [Api set:
|
|
94579
|
+
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
94569
94580
|
* @beta
|
|
94570
94581
|
*/
|
|
94571
94582
|
isEmpty?: boolean;
|
|
@@ -94573,7 +94584,7 @@ declare namespace Word {
|
|
|
94573
94584
|
* Gets or sets a value that indicates whether the comment text is italicized.
|
|
94574
94585
|
*
|
|
94575
94586
|
* @remarks
|
|
94576
|
-
* [Api set:
|
|
94587
|
+
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
94577
94588
|
* @beta
|
|
94578
94589
|
*/
|
|
94579
94590
|
italic?: boolean;
|
|
@@ -94581,7 +94592,7 @@ declare namespace Word {
|
|
|
94581
94592
|
* Gets or sets a value that indicates whether the comment text has a strikethrough.
|
|
94582
94593
|
*
|
|
94583
94594
|
* @remarks
|
|
94584
|
-
* [Api set:
|
|
94595
|
+
* [Api set: WordApiOnline BETA (PREVIEW ONLY)]
|
|
94585
94596
|
* @beta
|
|
94586
94597
|
*/
|
|
94587
94598
|
strikeThrough?: boolean;
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.290",
|
|
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": "
|
|
48
|
+
"typesPublisherContentHash": "5a9e367dc8871b387c7f183dd7b723ff90bb1b28a2a2b954a68faae4d46c1dcf",
|
|
49
49
|
"typeScriptVersion": "3.9"
|
|
50
50
|
}
|