@types/office-js 1.0.300 → 1.0.302
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 +48 -52
- office-js/package.json +3 -3
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: Thu, 01 Dec 2022 21:32:57 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
|
*
|
|
@@ -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
|
*
|
|
@@ -33148,7 +33140,8 @@ declare namespace Excel {
|
|
|
33148
33140
|
*/
|
|
33149
33141
|
readonly type: Excel.NamedItemType | "String" | "Integer" | "Double" | "Boolean" | "Range" | "Error" | "Array";
|
|
33150
33142
|
/**
|
|
33151
|
-
* Represents the value computed by the name's formula. For a named range
|
|
33143
|
+
* Represents the value computed by the name's formula. For a named range it will return the range address.
|
|
33144
|
+
* Note: This API returns the #VALUE! error in the Excel UI if it refers to a custom function.
|
|
33152
33145
|
*
|
|
33153
33146
|
* @remarks
|
|
33154
33147
|
* [Api set: ExcelApi 1.1]
|
|
@@ -66003,7 +65996,8 @@ declare namespace Excel {
|
|
|
66003
65996
|
*/
|
|
66004
65997
|
type?: Excel.NamedItemType | "String" | "Integer" | "Double" | "Boolean" | "Range" | "Error" | "Array";
|
|
66005
65998
|
/**
|
|
66006
|
-
* Represents the value computed by the name's formula. For a named range
|
|
65999
|
+
* Represents the value computed by the name's formula. For a named range it will return the range address.
|
|
66000
|
+
* Note: This API returns the #VALUE! error in the Excel UI if it refers to a custom function.
|
|
66007
66001
|
*
|
|
66008
66002
|
* @remarks
|
|
66009
66003
|
* [Api set: ExcelApi 1.1]
|
|
@@ -72979,7 +72973,8 @@ declare namespace Excel {
|
|
|
72979
72973
|
*/
|
|
72980
72974
|
type?: boolean;
|
|
72981
72975
|
/**
|
|
72982
|
-
* For EACH ITEM in the collection: Represents the value computed by the name's formula. For a named range
|
|
72976
|
+
* For EACH ITEM in the collection: Represents the value computed by the name's formula. For a named range it will return the range address.
|
|
72977
|
+
* Note: This API returns the #VALUE! error in the Excel UI if it refers to a custom function.
|
|
72983
72978
|
*
|
|
72984
72979
|
* @remarks
|
|
72985
72980
|
* [Api set: ExcelApi 1.1]
|
|
@@ -73080,7 +73075,8 @@ declare namespace Excel {
|
|
|
73080
73075
|
*/
|
|
73081
73076
|
type?: boolean;
|
|
73082
73077
|
/**
|
|
73083
|
-
* Represents the value computed by the name's formula. For a named range
|
|
73078
|
+
* Represents the value computed by the name's formula. For a named range it will return the range address.
|
|
73079
|
+
* Note: This API returns the #VALUE! error in the Excel UI if it refers to a custom function.
|
|
73084
73080
|
*
|
|
73085
73081
|
* @remarks
|
|
73086
73082
|
* [Api set: ExcelApi 1.1]
|
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.302",
|
|
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": "
|
|
49
|
-
"typeScriptVersion": "4.
|
|
48
|
+
"typesPublisherContentHash": "6fcb2bd839b993fa3d03ed4ae08dd868c75af89f94ce9396adc109948b1a9797",
|
|
49
|
+
"typeScriptVersion": "4.2"
|
|
50
50
|
}
|