@types/office-js 1.0.301 → 1.0.303
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 +1 -1
- office-js/index.d.ts +41 -49
- office-js/package.json +2 -2
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:
|
|
11
|
+
* Last updated: Mon, 05 Dec 2022 18:33:03 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js/index.d.ts
CHANGED
|
@@ -10233,13 +10233,12 @@ declare namespace Office {
|
|
|
10233
10233
|
*
|
|
10234
10234
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
10235
10235
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
10236
|
-
* @param callback -
|
|
10237
|
-
*
|
|
10238
|
-
* On success, the initialization context data is provided
|
|
10239
|
-
*
|
|
10240
|
-
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
10236
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10237
|
+
* of type `Office.AsyncResult`.
|
|
10238
|
+
* On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
|
|
10239
|
+
* in the `asyncResult.value` property.
|
|
10241
10240
|
*/
|
|
10242
|
-
getInitializationContextAsync(options: Office.AsyncContextOptions, callback
|
|
10241
|
+
getInitializationContextAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10243
10242
|
/**
|
|
10244
10243
|
* Gets initialization data passed when the add-in is {@link https://learn.microsoft.com/outlook/actionable-messages/invoke-add-in | activated by an actionable message}.
|
|
10245
10244
|
*
|
|
@@ -10250,13 +10249,12 @@ declare namespace Office {
|
|
|
10250
10249
|
*
|
|
10251
10250
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
|
|
10252
10251
|
*
|
|
10253
|
-
* @param callback -
|
|
10254
|
-
*
|
|
10255
|
-
* On success, the initialization context data is provided
|
|
10256
|
-
*
|
|
10257
|
-
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
10252
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
10253
|
+
* of type `Office.AsyncResult`.
|
|
10254
|
+
* On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
|
|
10255
|
+
* in the `asyncResult.value` property.
|
|
10258
10256
|
*/
|
|
10259
|
-
getInitializationContextAsync(callback
|
|
10257
|
+
getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
10260
10258
|
/**
|
|
10261
10259
|
* Asynchronously gets the ID of a saved item.
|
|
10262
10260
|
*
|
|
@@ -11547,13 +11545,12 @@ declare namespace Office {
|
|
|
11547
11545
|
*
|
|
11548
11546
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
11549
11547
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
11550
|
-
* @param callback -
|
|
11551
|
-
*
|
|
11552
|
-
* On success, the initialization context data is provided
|
|
11553
|
-
*
|
|
11554
|
-
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
11548
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
11549
|
+
* of type `Office.AsyncResult`.
|
|
11550
|
+
* On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
|
|
11551
|
+
* in the `asyncResult.value` property.
|
|
11555
11552
|
*/
|
|
11556
|
-
getInitializationContextAsync(options: Office.AsyncContextOptions, callback
|
|
11553
|
+
getInitializationContextAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
11557
11554
|
/**
|
|
11558
11555
|
* Gets initialization data passed when the add-in is {@link https://learn.microsoft.com/outlook/actionable-messages/invoke-add-in | activated by an actionable message}.
|
|
11559
11556
|
*
|
|
@@ -11564,13 +11561,12 @@ declare namespace Office {
|
|
|
11564
11561
|
*
|
|
11565
11562
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
|
|
11566
11563
|
*
|
|
11567
|
-
* @param callback -
|
|
11568
|
-
*
|
|
11569
|
-
* On success, the initialization context data is provided
|
|
11570
|
-
*
|
|
11571
|
-
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
11564
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
11565
|
+
* of type `Office.AsyncResult`.
|
|
11566
|
+
* On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
|
|
11567
|
+
* in the `asyncResult.value` property.
|
|
11572
11568
|
*/
|
|
11573
|
-
getInitializationContextAsync(callback
|
|
11569
|
+
getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
11574
11570
|
/**
|
|
11575
11571
|
* Returns string values in the selected item that match the regular expressions defined in the manifest XML file.
|
|
11576
11572
|
*
|
|
@@ -13517,7 +13513,7 @@ declare namespace Office {
|
|
|
13517
13513
|
*/
|
|
13518
13514
|
displayName: string;
|
|
13519
13515
|
/**
|
|
13520
|
-
* The email address associated with the location.
|
|
13516
|
+
* The email address associated with the location. Only locations of type `Room` have an email address.
|
|
13521
13517
|
*/
|
|
13522
13518
|
emailAddress: string;
|
|
13523
13519
|
}
|
|
@@ -15280,13 +15276,12 @@ declare namespace Office {
|
|
|
15280
15276
|
*
|
|
15281
15277
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
15282
15278
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
15283
|
-
* @param callback -
|
|
15284
|
-
*
|
|
15285
|
-
* On success, the initialization context data is provided
|
|
15286
|
-
*
|
|
15287
|
-
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
15279
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
15280
|
+
* of type `Office.AsyncResult`.
|
|
15281
|
+
* On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
|
|
15282
|
+
* in the `asyncResult.value` property.
|
|
15288
15283
|
*/
|
|
15289
|
-
getInitializationContextAsync(options: Office.AsyncContextOptions, callback
|
|
15284
|
+
getInitializationContextAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
15290
15285
|
/**
|
|
15291
15286
|
* Gets initialization data passed when the add-in is {@link https://learn.microsoft.com/outlook/actionable-messages/invoke-add-in | activated by an actionable message}.
|
|
15292
15287
|
*
|
|
@@ -15297,13 +15292,12 @@ declare namespace Office {
|
|
|
15297
15292
|
*
|
|
15298
15293
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
|
|
15299
15294
|
*
|
|
15300
|
-
* @param callback -
|
|
15301
|
-
*
|
|
15302
|
-
* On success, the initialization context data is provided
|
|
15303
|
-
*
|
|
15304
|
-
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
15295
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
15296
|
+
* of type `Office.AsyncResult`.
|
|
15297
|
+
* On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
|
|
15298
|
+
* in the `asyncResult.value` property.
|
|
15305
15299
|
*/
|
|
15306
|
-
getInitializationContextAsync(callback
|
|
15300
|
+
getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
15307
15301
|
/**
|
|
15308
15302
|
* Asynchronously gets the ID of a saved item.
|
|
15309
15303
|
*
|
|
@@ -16528,13 +16522,12 @@ declare namespace Office {
|
|
|
16528
16522
|
*
|
|
16529
16523
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
16530
16524
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
16531
|
-
* @param callback -
|
|
16532
|
-
*
|
|
16533
|
-
* On success, the initialization context data is provided
|
|
16534
|
-
*
|
|
16535
|
-
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
16525
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
16526
|
+
* of type `Office.AsyncResult`.
|
|
16527
|
+
* On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
|
|
16528
|
+
* in the `asyncResult.value` property.
|
|
16536
16529
|
*/
|
|
16537
|
-
getInitializationContextAsync(options: Office.AsyncContextOptions, callback
|
|
16530
|
+
getInitializationContextAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16538
16531
|
/**
|
|
16539
16532
|
* Gets initialization data passed when the add-in is {@link https://learn.microsoft.com/outlook/actionable-messages/invoke-add-in | activated by an actionable message}.
|
|
16540
16533
|
*
|
|
@@ -16545,13 +16538,12 @@ declare namespace Office {
|
|
|
16545
16538
|
*
|
|
16546
16539
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
|
|
16547
16540
|
*
|
|
16548
|
-
* @param callback -
|
|
16549
|
-
*
|
|
16550
|
-
* On success, the initialization context data is provided
|
|
16551
|
-
*
|
|
16552
|
-
* an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
|
|
16541
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
16542
|
+
* of type `Office.AsyncResult`.
|
|
16543
|
+
* On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
|
|
16544
|
+
* in the `asyncResult.value` property.
|
|
16553
16545
|
*/
|
|
16554
|
-
getInitializationContextAsync(callback
|
|
16546
|
+
getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
|
|
16555
16547
|
/**
|
|
16556
16548
|
* Returns string values in the selected item that match the regular expressions defined in the manifest XML file.
|
|
16557
16549
|
*
|
office-js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.303",
|
|
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",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "b99b45aad8c3e58287be33e6d5fb4c9b39ce01e297a41c9e733063993d479b0f",
|
|
49
49
|
"typeScriptVersion": "4.2"
|
|
50
50
|
}
|