@types/office-js 1.0.580 → 1.0.582
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 +3 -3
- office-js/package.json +2 -2
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: Thu,
|
|
11
|
+
* Last updated: Thu, 12 Mar 2026 23:40:25 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -3212,7 +3212,7 @@ declare namespace Office {
|
|
|
3212
3212
|
* @param shortcuts An object of custom shortcuts with keys being the IDs of the actions and values being the shortcut combinations. For example, `{"SetItalic": "Ctrl+1", "SetBold": "Ctrl+2"}`.
|
|
3213
3213
|
* To learn how to specify a valid action ID and a key combination, see {@link https://learn.microsoft.com/office/dev/add-ins/design/keyboard-shortcuts | Add custom keyboard shortcuts to your Office Add-ins}. (Note that a key combination can be `null`, in which case, the action keeps the key combination specified in the JSON file.)
|
|
3214
3214
|
* @returns A promise that resolves when every custom shortcut assignment in `shortcuts` has been registered. Even if there is a conflict with existing shortcuts, the customized shortcut will be registered.
|
|
3215
|
-
* Otherwise, the promise will be rejected with error code and error message. An
|
|
3215
|
+
* Otherwise, the promise will be rejected with an error code and error message. An `OfficeExtension.ErrorCodes.invalidArgument` error code is returned if any action ID in `shortcuts` doesn't exist, or if shortcut combination is invalid.
|
|
3216
3216
|
*/
|
|
3217
3217
|
replaceShortcuts(shortcuts: {[actionId: string]: string}): Promise<void>;
|
|
3218
3218
|
/**
|
|
@@ -97983,12 +97983,12 @@ declare namespace Word {
|
|
|
97983
97983
|
/** Sets multiple properties on the object at the same time, based on an existing loaded object. */
|
|
97984
97984
|
set(properties: Word.CommentContentRange): void;
|
|
97985
97985
|
/**
|
|
97986
|
-
* Inserts text
|
|
97986
|
+
* Inserts text at the specified location. **Note**: For the modern comment, the content range tracked across context turns to empty if any revision to the comment is posted through the UI.
|
|
97987
97987
|
*
|
|
97988
97988
|
* @remarks
|
|
97989
97989
|
* [Api set: WordApi 1.4]
|
|
97990
97990
|
*
|
|
97991
|
-
* @param text The text to be inserted
|
|
97991
|
+
* @param text The text to be inserted into the `CommentContentRange` object.
|
|
97992
97992
|
* @param insertLocation The value must be `replace`, `start`, `end`, `before`, or `after`.
|
|
97993
97993
|
*/
|
|
97994
97994
|
insertText(text: string, insertLocation: Word.InsertLocation | "Replace" | "Start" | "End" | "Before" | "After"): Word.CommentContentRange;
|
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.582",
|
|
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",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
48
|
"peerDependencies": {},
|
|
49
|
-
"typesPublisherContentHash": "
|
|
49
|
+
"typesPublisherContentHash": "57e9b87260345bd5051436ac11092cf3de142642c51b1f4aee16bbfbd617045f",
|
|
50
50
|
"typeScriptVersion": "5.2"
|
|
51
51
|
}
|