@types/office-js-preview 1.0.355 → 1.0.357

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, 17 Nov 2022 00:03:04 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
 
@@ -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
  *
@@ -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
  *
@@ -35559,7 +35551,8 @@ declare namespace Excel {
35559
35551
  */
35560
35552
  readonly type: Excel.NamedItemType | "String" | "Integer" | "Double" | "Boolean" | "Range" | "Error" | "Array";
35561
35553
  /**
35562
- * Represents the value computed by the name's formula. For a named range, will return the range address.
35554
+ * Represents the value computed by the name's formula. For a named range it will return the range address.
35555
+ * Note: This API returns the #VALUE! error in the Excel UI if it refers to a custom function.
35563
35556
  *
35564
35557
  * @remarks
35565
35558
  * [Api set: ExcelApi 1.1]
@@ -69446,7 +69439,8 @@ declare namespace Excel {
69446
69439
  */
69447
69440
  type?: Excel.NamedItemType | "String" | "Integer" | "Double" | "Boolean" | "Range" | "Error" | "Array";
69448
69441
  /**
69449
- * Represents the value computed by the name's formula. For a named range, will return the range address.
69442
+ * Represents the value computed by the name's formula. For a named range it will return the range address.
69443
+ * Note: This API returns the #VALUE! error in the Excel UI if it refers to a custom function.
69450
69444
  *
69451
69445
  * @remarks
69452
69446
  * [Api set: ExcelApi 1.1]
@@ -76978,7 +76972,8 @@ declare namespace Excel {
76978
76972
  */
76979
76973
  type?: boolean;
76980
76974
  /**
76981
- * For EACH ITEM in the collection: Represents the value computed by the name's formula. For a named range, will return the range address.
76975
+ * 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.
76976
+ * Note: This API returns the #VALUE! error in the Excel UI if it refers to a custom function.
76982
76977
  *
76983
76978
  * @remarks
76984
76979
  * [Api set: ExcelApi 1.1]
@@ -77080,6 +77075,7 @@ declare namespace Excel {
77080
77075
  type?: boolean;
77081
77076
  /**
77082
77077
  * Represents the value computed by the name's formula. For a named range, will return the range address.
77078
+ * Note: This API returns the #VALUE! error in the Excel UI if it refers to a custom function.
77083
77079
  *
77084
77080
  * @remarks
77085
77081
  * [Api set: ExcelApi 1.1]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.355",
3
+ "version": "1.0.357",
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": "8694a0305ae64b82c2884086cdd9105a0304e7c1124d0ddccd90803f962a0d52",
48
+ "typesPublisherContentHash": "79c293a1b5055bb080cf14036c0ff6895c7a096d23f9d6e112cd61ff35b7be00",
49
49
  "typeScriptVersion": "4.2"
50
50
  }