@types/office-js 1.0.299 → 1.0.301
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 +35 -29
- 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 20:32:58 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
|
@@ -13143,7 +13143,7 @@ declare namespace Office {
|
|
|
13143
13143
|
* The `InternetHeaders` object represents custom internet headers that are preserved after the message item leaves Exchange
|
|
13144
13144
|
* and is converted to a MIME message. These headers are stored as x-headers in the MIME message.
|
|
13145
13145
|
*
|
|
13146
|
-
* Internet headers are stored as key
|
|
13146
|
+
* Internet headers are stored as string key-value pairs on a per-item basis.
|
|
13147
13147
|
*
|
|
13148
13148
|
* **Note**: This object is intended for you to set and get your custom headers on a message item. To learn more, see
|
|
13149
13149
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/internet-headers | Get and set internet headers on a message in an Outlook add-in}.
|
|
@@ -13173,8 +13173,8 @@ declare namespace Office {
|
|
|
13173
13173
|
*/
|
|
13174
13174
|
interface InternetHeaders {
|
|
13175
13175
|
/**
|
|
13176
|
-
* Given an array of internet header names, this method returns a
|
|
13177
|
-
* If the add-in requests an x-header that
|
|
13176
|
+
* Given an array of internet header names, this method returns a record containing those internet headers and their values.
|
|
13177
|
+
* If the add-in requests an x-header that isn't available, that x-header will not be returned in the results.
|
|
13178
13178
|
*
|
|
13179
13179
|
* **Note**: This method is intended to return the values of the custom headers you set using the `setAsync` method.
|
|
13180
13180
|
*
|
|
@@ -13188,13 +13188,14 @@ declare namespace Office {
|
|
|
13188
13188
|
* @param names - The names of the internet headers to be returned.
|
|
13189
13189
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
13190
13190
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
13191
|
-
* @param callback -
|
|
13192
|
-
* `asyncResult`,
|
|
13191
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
13192
|
+
* `asyncResult`, of type `Office.AsyncResult`. The string key-value pairs of internet headers are returned in the
|
|
13193
|
+
* `asyncResult.value` property. Any errors encountered are provided in the `asyncResult.error` property.
|
|
13193
13194
|
*/
|
|
13194
|
-
getAsync(names: string[], options: Office.AsyncContextOptions, callback
|
|
13195
|
+
getAsync(names: string[], options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<Record<string, string>>) => void): void;
|
|
13195
13196
|
/**
|
|
13196
|
-
* Given an array of internet header names, this method returns a
|
|
13197
|
-
* If the add-in requests an x-header that
|
|
13197
|
+
* Given an array of internet header names, this method returns a record containing those internet headers and their values.
|
|
13198
|
+
* If the add-in requests an x-header that isn't available, that x-header will not be returned in the results.
|
|
13198
13199
|
*
|
|
13199
13200
|
* **Note**: This method is intended to return the values of the custom headers you set using the `setAsync` method.
|
|
13200
13201
|
*
|
|
@@ -13206,10 +13207,11 @@ declare namespace Office {
|
|
|
13206
13207
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
13207
13208
|
*
|
|
13208
13209
|
* @param names - The names of the internet headers to be returned.
|
|
13209
|
-
* @param callback -
|
|
13210
|
-
* `asyncResult`,
|
|
13210
|
+
* @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
13211
|
+
* `asyncResult`, of type `Office.AsyncResult`. The string key-value pairs of internet headers are returned in the
|
|
13212
|
+
* `asyncResult.value` property. Any errors encountered are provided in the `asyncResult.error` property.
|
|
13211
13213
|
*/
|
|
13212
|
-
getAsync(names: string[], callback
|
|
13214
|
+
getAsync(names: string[], callback: (asyncResult: Office.AsyncResult<Record<string, string>>) => void): void;
|
|
13213
13215
|
/**
|
|
13214
13216
|
* Given an array of internet header names, this method removes the specified headers from the internet header collection.
|
|
13215
13217
|
*
|
|
@@ -13226,9 +13228,9 @@ declare namespace Office {
|
|
|
13226
13228
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
13227
13229
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
13228
13230
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
13229
|
-
* `asyncResult`,
|
|
13231
|
+
* `asyncResult`, of type `Office.AsyncResult`. Any errors encountered are provided in the `asyncResult.error` property.
|
|
13230
13232
|
*/
|
|
13231
|
-
removeAsync(names: string[], options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<
|
|
13233
|
+
removeAsync(names: string[], options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
13232
13234
|
/**
|
|
13233
13235
|
* Given an array of internet header names, this method removes the specified headers from the internet header collection.
|
|
13234
13236
|
*
|
|
@@ -13243,9 +13245,9 @@ declare namespace Office {
|
|
|
13243
13245
|
*
|
|
13244
13246
|
* @param names - The names of the internet headers to be removed.
|
|
13245
13247
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
13246
|
-
* `asyncResult`,
|
|
13248
|
+
* `asyncResult`, of type `Office.AsyncResult`. Any errors encountered are provided in the `asyncResult.error` property.
|
|
13247
13249
|
*/
|
|
13248
|
-
removeAsync(names: string[], callback?: (asyncResult: Office.AsyncResult<
|
|
13250
|
+
removeAsync(names: string[], callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
13249
13251
|
/**
|
|
13250
13252
|
* Sets the specified internet headers to the specified values.
|
|
13251
13253
|
*
|
|
@@ -13267,14 +13269,14 @@ declare namespace Office {
|
|
|
13267
13269
|
*
|
|
13268
13270
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
13269
13271
|
*
|
|
13270
|
-
* @param headers - The names and corresponding values of the headers to be set.
|
|
13271
|
-
*
|
|
13272
|
+
* @param headers - The names and corresponding values of the headers to be set. This should be a record object with its keys being internet header names
|
|
13273
|
+
* and values being the corresponding header value strings.
|
|
13272
13274
|
* @param options - An object literal that contains one or more of the following properties:-
|
|
13273
13275
|
* `asyncContext`: Developers can provide any object they wish to access in the callback function.
|
|
13274
|
-
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
13275
|
-
*
|
|
13276
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
13277
|
+
* `asyncResult`, of type `Office.AsyncResult`. Any errors encountered are provided in the `asyncResult.error` property.
|
|
13276
13278
|
*/
|
|
13277
|
-
setAsync(headers:
|
|
13279
|
+
setAsync(headers: Record<string, string>, options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
13278
13280
|
/**
|
|
13279
13281
|
* Sets the specified internet headers to the specified values.
|
|
13280
13282
|
*
|
|
@@ -13296,12 +13298,12 @@ declare namespace Office {
|
|
|
13296
13298
|
*
|
|
13297
13299
|
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
13298
13300
|
*
|
|
13299
|
-
* @param headers - The names and corresponding values of the headers to be set.
|
|
13300
|
-
*
|
|
13301
|
-
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
13302
|
-
*
|
|
13301
|
+
* @param headers - The names and corresponding values of the headers to be set. This should be a record object with its keys being internet header names
|
|
13302
|
+
* and values being the corresponding header value strings.
|
|
13303
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter,
|
|
13304
|
+
* `asyncResult`, of type `Office.AsyncResult`. Any errors encountered are provided in the `asyncResult.error` property.
|
|
13303
13305
|
*/
|
|
13304
|
-
setAsync(headers:
|
|
13306
|
+
setAsync(headers: Record<string, string>, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
13305
13307
|
}
|
|
13306
13308
|
/**
|
|
13307
13309
|
* The item namespace is used to access the currently selected message, meeting request, or appointment.
|
|
@@ -33146,7 +33148,8 @@ declare namespace Excel {
|
|
|
33146
33148
|
*/
|
|
33147
33149
|
readonly type: Excel.NamedItemType | "String" | "Integer" | "Double" | "Boolean" | "Range" | "Error" | "Array";
|
|
33148
33150
|
/**
|
|
33149
|
-
* Represents the value computed by the name's formula. For a named range
|
|
33151
|
+
* Represents the value computed by the name's formula. For a named range it will return the range address.
|
|
33152
|
+
* Note: This API returns the #VALUE! error in the Excel UI if it refers to a custom function.
|
|
33150
33153
|
*
|
|
33151
33154
|
* @remarks
|
|
33152
33155
|
* [Api set: ExcelApi 1.1]
|
|
@@ -66001,7 +66004,8 @@ declare namespace Excel {
|
|
|
66001
66004
|
*/
|
|
66002
66005
|
type?: Excel.NamedItemType | "String" | "Integer" | "Double" | "Boolean" | "Range" | "Error" | "Array";
|
|
66003
66006
|
/**
|
|
66004
|
-
* Represents the value computed by the name's formula. For a named range
|
|
66007
|
+
* Represents the value computed by the name's formula. For a named range it will return the range address.
|
|
66008
|
+
* Note: This API returns the #VALUE! error in the Excel UI if it refers to a custom function.
|
|
66005
66009
|
*
|
|
66006
66010
|
* @remarks
|
|
66007
66011
|
* [Api set: ExcelApi 1.1]
|
|
@@ -72977,7 +72981,8 @@ declare namespace Excel {
|
|
|
72977
72981
|
*/
|
|
72978
72982
|
type?: boolean;
|
|
72979
72983
|
/**
|
|
72980
|
-
* For EACH ITEM in the collection: Represents the value computed by the name's formula. For a named range
|
|
72984
|
+
* 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.
|
|
72985
|
+
* Note: This API returns the #VALUE! error in the Excel UI if it refers to a custom function.
|
|
72981
72986
|
*
|
|
72982
72987
|
* @remarks
|
|
72983
72988
|
* [Api set: ExcelApi 1.1]
|
|
@@ -73078,7 +73083,8 @@ declare namespace Excel {
|
|
|
73078
73083
|
*/
|
|
73079
73084
|
type?: boolean;
|
|
73080
73085
|
/**
|
|
73081
|
-
* Represents the value computed by the name's formula. For a named range
|
|
73086
|
+
* Represents the value computed by the name's formula. For a named range it will return the range address.
|
|
73087
|
+
* Note: This API returns the #VALUE! error in the Excel UI if it refers to a custom function.
|
|
73082
73088
|
*
|
|
73083
73089
|
* @remarks
|
|
73084
73090
|
* [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.301",
|
|
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": "425acbc171bfcb4d003f13a927956c740bf1ffd92bd3ee83d98996a0baf557b4",
|
|
49
|
+
"typeScriptVersion": "4.2"
|
|
50
50
|
}
|