@types/office-js-preview 1.0.356 → 1.0.358

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.
@@ -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: Thu, 01 Dec 2022 20:32:58 GMT
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
 
@@ -10386,13 +10386,12 @@ declare namespace Office {
10386
10386
  *
10387
10387
  * @param options - An object literal that contains one or more of the following properties:-
10388
10388
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
10389
- * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
10390
- * of type `Office.AsyncResult`.
10391
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
10392
- * If there is no initialization context, the `asyncResult` object will contain
10393
- * an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
10389
+ * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
10390
+ * of type `Office.AsyncResult`.
10391
+ * On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
10392
+ * in the `asyncResult.value` property.
10394
10393
  */
10395
- getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
10394
+ getInitializationContextAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
10396
10395
  /**
10397
10396
  * 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}.
10398
10397
  *
@@ -10403,13 +10402,12 @@ declare namespace Office {
10403
10402
  *
10404
10403
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Organizer
10405
10404
  *
10406
- * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
10407
- * of type `Office.AsyncResult`.
10408
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
10409
- * If there is no initialization context, the `asyncResult` object will contain
10410
- * an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
10405
+ * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
10406
+ * of type `Office.AsyncResult`.
10407
+ * On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
10408
+ * in the `asyncResult.value` property.
10411
10409
  */
10412
- getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
10410
+ getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
10413
10411
  /**
10414
10412
  * Asynchronously gets the ID of a saved item.
10415
10413
  *
@@ -11726,13 +11724,12 @@ declare namespace Office {
11726
11724
  *
11727
11725
  * @param options - An object literal that contains one or more of the following properties:-
11728
11726
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
11729
- * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
11730
- * of type `Office.AsyncResult`.
11731
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
11732
- * If there is no initialization context, the `asyncResult` object will contain
11733
- * an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
11727
+ * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
11728
+ * of type `Office.AsyncResult`.
11729
+ * On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
11730
+ * in the `asyncResult.value` property.
11734
11731
  */
11735
- getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
11732
+ getInitializationContextAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
11736
11733
  /**
11737
11734
  * 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}.
11738
11735
  *
@@ -11743,13 +11740,12 @@ declare namespace Office {
11743
11740
  *
11744
11741
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Appointment Attendee
11745
11742
  *
11746
- * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
11747
- * of type `Office.AsyncResult`.
11748
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
11749
- * If there is no initialization context, the `asyncResult` object will contain
11750
- * an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
11743
+ * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
11744
+ * of type `Office.AsyncResult`.
11745
+ * On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
11746
+ * in the `asyncResult.value` property.
11751
11747
  */
11752
- getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
11748
+ getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
11753
11749
  /**
11754
11750
  * Returns string values in the selected item that match the regular expressions defined in the manifest XML file.
11755
11751
  *
@@ -13780,7 +13776,7 @@ declare namespace Office {
13780
13776
  */
13781
13777
  displayName: string;
13782
13778
  /**
13783
- * The email address associated with the location.
13779
+ * The email address associated with the location. Only locations of type `Room` have an email address.
13784
13780
  */
13785
13781
  emailAddress: string;
13786
13782
  }
@@ -15605,13 +15601,12 @@ declare namespace Office {
15605
15601
  *
15606
15602
  * @param options - An object literal that contains one or more of the following properties:-
15607
15603
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
15608
- * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
15609
- * of type `Office.AsyncResult`.
15610
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
15611
- * If there is no initialization context, the `asyncResult` object will contain
15612
- * an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
15604
+ * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
15605
+ * of type `Office.AsyncResult`.
15606
+ * On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
15607
+ * in the `asyncResult.value` property..
15613
15608
  */
15614
- getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
15609
+ getInitializationContextAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
15615
15610
  /**
15616
15611
  * 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}.
15617
15612
  *
@@ -15622,13 +15617,12 @@ declare namespace Office {
15622
15617
  *
15623
15618
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
15624
15619
  *
15625
- * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
15626
- * of type `Office.AsyncResult`.
15627
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
15628
- * If there is no initialization context, the `asyncResult` object will contain
15629
- * an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
15620
+ * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
15621
+ * of type `Office.AsyncResult`.
15622
+ * On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
15623
+ * in the `asyncResult.value` property.
15630
15624
  */
15631
- getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
15625
+ getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
15632
15626
  /**
15633
15627
  * Asynchronously gets the ID of a saved item.
15634
15628
  *
@@ -16873,13 +16867,12 @@ declare namespace Office {
16873
16867
  *
16874
16868
  * @param options - An object literal that contains one or more of the following properties:-
16875
16869
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
16876
- * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
16877
- * of type `Office.AsyncResult`.
16878
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
16879
- * If there is no initialization context, the `asyncResult` object will contain
16880
- * an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
16870
+ * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
16871
+ * of type `Office.AsyncResult`.
16872
+ * On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
16873
+ * in the `asyncResult.value` property.
16881
16874
  */
16882
- getInitializationContextAsync(options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
16875
+ getInitializationContextAsync(options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<string>) => void): void;
16883
16876
  /**
16884
16877
  * 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}.
16885
16878
  *
@@ -16890,13 +16883,12 @@ declare namespace Office {
16890
16883
  *
16891
16884
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Read
16892
16885
  *
16893
- * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
16894
- * of type `Office.AsyncResult`.
16895
- * On success, the initialization context data is provided in the `asyncResult.value` property as a string.
16896
- * If there is no initialization context, the `asyncResult` object will contain
16897
- * an `Error` object with its `code` property set to 9020 and its `name` property set to `GenericResponseError`.
16886
+ * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter
16887
+ * of type `Office.AsyncResult`.
16888
+ * On success, the initialization context data is provided as a string (or an empty string if there's no initialization context)
16889
+ * in the `asyncResult.value` property.
16898
16890
  */
16899
- getInitializationContextAsync(callback?: (asyncResult: Office.AsyncResult<string>) => void): void;
16891
+ getInitializationContextAsync(callback: (asyncResult: Office.AsyncResult<string>) => void): void;
16900
16892
  /**
16901
16893
  * Returns string values in the selected item that match the regular expressions defined in the manifest XML file.
16902
16894
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.356",
3
+ "version": "1.0.358",
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": "80fe86d9731200ebbb31974f365ffeee3a5c1a0dc582bbd058c4a8a146877f94",
48
+ "typesPublisherContentHash": "7854d3831f7a8c3438a0ba84e49bc3e925d87aeff707600350cd9dad15e64ade",
49
49
  "typeScriptVersion": "4.2"
50
50
  }