@types/office-js 1.0.301 → 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 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: Thu, 01 Dec 2022 20:32:58 GMT
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 - Optional. 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 in the `asyncResult.value` property as a string.
10239
- * If there is no initialization context, the `asyncResult` object will contain
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?: (asyncResult: Office.AsyncResult<string>) => void): void;
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 - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
10254
- * of type `Office.AsyncResult`.
10255
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
10256
- * If there is no initialization context, the `asyncResult` object will contain
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?: (asyncResult: Office.AsyncResult<string>) => void): void;
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 - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
11551
- * of type `Office.AsyncResult`.
11552
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
11553
- * If there is no initialization context, the `asyncResult` object will contain
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?: (asyncResult: Office.AsyncResult<string>) => void): void;
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 - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
11568
- * of type `Office.AsyncResult`.
11569
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
11570
- * If there is no initialization context, the `asyncResult` object will contain
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?: (asyncResult: Office.AsyncResult<string>) => void): void;
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 - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
15284
- * of type `Office.AsyncResult`.
15285
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
15286
- * If there is no initialization context, the `asyncResult` object will contain
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?: (asyncResult: Office.AsyncResult<string>) => void): void;
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 - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
15301
- * of type `Office.AsyncResult`.
15302
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
15303
- * If there is no initialization context, the `asyncResult` object will contain
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?: (asyncResult: Office.AsyncResult<string>) => void): void;
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 - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
16532
- * of type `Office.AsyncResult`.
16533
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
16534
- * If there is no initialization context, the `asyncResult` object will contain
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?: (asyncResult: Office.AsyncResult<string>) => void): void;
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 - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
16549
- * of type `Office.AsyncResult`.
16550
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
16551
- * If there is no initialization context, the `asyncResult` object will contain
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?: (asyncResult: Office.AsyncResult<string>) => void): void;
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.301",
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": "425acbc171bfcb4d003f13a927956c740bf1ffd92bd3ee83d98996a0baf557b4",
48
+ "typesPublisherContentHash": "6fcb2bd839b993fa3d03ed4ae08dd868c75af89f94ce9396adc109948b1a9797",
49
49
  "typeScriptVersion": "4.2"
50
50
  }