@types/office-js 1.0.220 → 1.0.221
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 +1 -1
- office-js/index.d.ts +16 -2
- office-js/package.json +3 -3
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:
|
|
11
|
+
* Last updated: Fri, 19 Nov 2021 19:31:13 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
|
@@ -971,10 +971,24 @@ declare namespace Office {
|
|
|
971
971
|
*
|
|
972
972
|
* @param eventType Specifies the type of event to add. This must be `Office.EventType.DialogParentMessageReceived`.
|
|
973
973
|
* @param handler The event handler function to add, whose only parameter is of type {@link Office.DialogParentMessageReceivedEventArgs}.
|
|
974
|
-
* @param options
|
|
974
|
+
* @param options Provides an option for preserving context data of any type, unchanged, for use in a callback.
|
|
975
|
+
* @param callback Optional. A function that is invoked when the handler registration returns, whose only parameter is of type {@link Office.AsyncResult}.
|
|
976
|
+
*/
|
|
977
|
+
addHandlerAsync(eventType: Office.EventType, handler: (result: DialogParentMessageReceivedEventArgs) => void, options: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
|
|
978
|
+
/**
|
|
979
|
+
* Adds an event handler to the object using the specified event type.
|
|
980
|
+
*
|
|
981
|
+
* @remarks
|
|
982
|
+
*
|
|
983
|
+
* **Requirement set**: {@link https://docs.microsoft.com/office/dev/add-ins/reference/requirement-sets/dialog-api-requirement-sets | DialogApi 1.2}
|
|
984
|
+
*
|
|
985
|
+
* You can add multiple event handlers for the specified event type as long as the name of each event handler function is unique.
|
|
986
|
+
*
|
|
987
|
+
* @param eventType Specifies the type of event to add. This must be `Office.EventType.DialogParentMessageReceived`.
|
|
988
|
+
* @param handler The event handler function to add, whose only parameter is of type {@link Office.DialogParentMessageReceivedEventArgs}.
|
|
975
989
|
* @param callback Optional. A function that is invoked when the handler registration returns, whose only parameter is of type {@link Office.AsyncResult}.
|
|
976
990
|
*/
|
|
977
|
-
addHandlerAsync(eventType: Office.EventType, handler: (result: DialogParentMessageReceivedEventArgs) => void,
|
|
991
|
+
addHandlerAsync(eventType: Office.EventType, handler: (result: DialogParentMessageReceivedEventArgs) => void, callback?: (result: AsyncResult<void>) => void): void;
|
|
978
992
|
/**
|
|
979
993
|
* Displays a dialog to show or collect information from the user or to facilitate Web navigation.
|
|
980
994
|
*
|
office-js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.221",
|
|
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",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {},
|
|
42
42
|
"dependencies": {},
|
|
43
|
-
"typesPublisherContentHash": "
|
|
44
|
-
"typeScriptVersion": "3.
|
|
43
|
+
"typesPublisherContentHash": "7b1d022223980ac6cde4ad253c968d2d92454af5352e861b15a7bda2525bfc2c",
|
|
44
|
+
"typeScriptVersion": "3.8"
|
|
45
45
|
}
|