@types/office-js-preview 1.0.499 → 1.0.500

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-preview (https://github.com
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: Tue, 20 Aug 2024 17:07:30 GMT
11
+ * Last updated: Thu, 22 Aug 2024 23:07:34 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -12781,10 +12781,16 @@ declare namespace Office {
12781
12781
  *
12782
12782
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
12783
12783
  *
12784
- * **Important**: When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
12784
+ * **Important**:
12785
+ *
12786
+ * - When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
12785
12787
  * be the exact same value that was previously passed in the `Body.setAsync` method. The client may modify the value passed to `setAsync` to make it
12786
12788
  * render efficiently with its rendering engine.
12787
12789
  *
12790
+ * - In Outlook on the web and {@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new Outlook on Windows},
12791
+ * if the body contains formatted elements, such as tables, lists, and links, specify `Office.CoercionType.Html` in the `getAsync` call.
12792
+ * Otherwise, you may receive an unexpected value, such as an empty string.
12793
+ *
12788
12794
  * @param coercionType - The format for the returned body.
12789
12795
  * @param options - An object literal that contains one or more of the following properties:-
12790
12796
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
@@ -12804,10 +12810,16 @@ declare namespace Office {
12804
12810
  *
12805
12811
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
12806
12812
  *
12807
- * **Important**: When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
12813
+ * **Important**:
12814
+ *
12815
+ * - When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
12808
12816
  * be the exact same value that was previously passed in the `Body.setAsync` method. The client may modify the value passed to `setAsync` to make it
12809
12817
  * render efficiently with its rendering engine.
12810
12818
  *
12819
+ * - In Outlook on the web and {@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new Outlook on Windows},
12820
+ * if the body contains formatted elements, such as tables, lists, and links, specify `Office.CoercionType.Html` in the `getAsync` call.
12821
+ * Otherwise, you may receive an unexpected value, such as an empty string.
12822
+ *
12811
12823
  * @param coercionType - The format for the returned body.
12812
12824
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
12813
12825
  * of type Office.AsyncResult. The body is provided in the requested format in the `asyncResult.value` property.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.499",
3
+ "version": "1.0.500",
4
4
  "description": "TypeScript definitions for office-js-preview",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
6
6
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "cdf42a38202782a3c665d31f3e6e4cf1d9265c88a163eaa5319877c503e7301a",
48
+ "typesPublisherContentHash": "a8dd7ddc1bed51c5568ce5f4a202b9a5baed5014e4184da5b614815156875730",
49
49
  "typeScriptVersion": "4.8",
50
50
  "nonNpm": true
51
51
  }