@types/office-js 1.0.413 → 1.0.414

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: Wed, 14 Aug 2024 20:07:48 GMT
11
+ * Last updated: Thu, 22 Aug 2024 23:07:34 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
office-js/index.d.ts CHANGED
@@ -12695,10 +12695,16 @@ declare namespace Office {
12695
12695
  *
12696
12696
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
12697
12697
  *
12698
- * **Important**: When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
12698
+ * **Important**:
12699
+ *
12700
+ * - When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
12699
12701
  * 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
12700
12702
  * render efficiently with its rendering engine.
12701
12703
  *
12704
+ * - In Outlook on the web and {@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new Outlook on Windows},
12705
+ * if the body contains formatted elements, such as tables, lists, and links, specify `Office.CoercionType.Html` in the `getAsync` call.
12706
+ * Otherwise, you may receive an unexpected value, such as an empty string.
12707
+ *
12702
12708
  * @param coercionType - The format for the returned body.
12703
12709
  * @param options - An object literal that contains one or more of the following properties:-
12704
12710
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
@@ -12718,10 +12724,16 @@ declare namespace Office {
12718
12724
  *
12719
12725
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose or Read
12720
12726
  *
12721
- * **Important**: When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
12727
+ * **Important**:
12728
+ *
12729
+ * - When working with HTML-formatted bodies, it's important to note that the value returned by the `Body.getAsync` method won't necessarily
12722
12730
  * 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
12723
12731
  * render efficiently with its rendering engine.
12724
12732
  *
12733
+ * - In Outlook on the web and {@link https://support.microsoft.com/office/656bb8d9-5a60-49b2-a98b-ba7822bc7627 | new Outlook on Windows},
12734
+ * if the body contains formatted elements, such as tables, lists, and links, specify `Office.CoercionType.Html` in the `getAsync` call.
12735
+ * Otherwise, you may receive an unexpected value, such as an empty string.
12736
+ *
12725
12737
  * @param coercionType - The format for the returned body.
12726
12738
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
12727
12739
  * of type Office.AsyncResult. The body is provided in the requested format in the `asyncResult.value` property.
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.413",
3
+ "version": "1.0.414",
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": "102afe8ae4a3b06daf1cf94a870f60e6ada39ee8652a90eb7c5c965c2bfabcc1",
48
+ "typesPublisherContentHash": "23a022f56b99cce4941f0be732db365fe92d24a0de8b29b5f0feac14016f8de4",
49
49
  "typeScriptVersion": "4.8"
50
50
  }