@types/office-js 1.0.360 → 1.0.361
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 +15 -15
- 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:
|
|
11
|
+
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ declare namespace Office {
|
|
|
111
111
|
* @param values An array of Promises.
|
|
112
112
|
* @returns A new Promise.
|
|
113
113
|
*/
|
|
114
|
-
all<T>(values:
|
|
114
|
+
all<T>(values: Array<T | PromiseLike<T>>): Promise<T[]>;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
@@ -191,7 +191,7 @@ declare namespace Office {
|
|
|
191
191
|
* @param values An array of Promises.
|
|
192
192
|
* @returns A new Promise.
|
|
193
193
|
*/
|
|
194
|
-
race<T>(values:
|
|
194
|
+
race<T>(values: Array<T | PromiseLike<T>>): Promise<T>;
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
* Creates a new rejected promise for the provided reason.
|
|
@@ -572,7 +572,7 @@ declare namespace Office {
|
|
|
572
572
|
* @param shortcuts An array of shortcut combinations. For example, `["Ctrl+1", "Ctrl+2"]`.
|
|
573
573
|
* @returns A promise that resolves to an array of objects. Each object consists of a shortcut combination and Boolean value. The value is `true` if the shortcut combination conflicts with a shortcut of another add-in or with a shortcut of the Office application; otherwise, `false`. For example, `[{shortcut:"Ctrl+1", inUse:true},{shortcut:"Ctrl+2", inUse:false}]`.
|
|
574
574
|
*/
|
|
575
|
-
areShortcutsInUse(shortcuts: string[]): Promise<{shortcut: string, inUse: boolean}
|
|
575
|
+
areShortcutsInUse(shortcuts: string[]): Promise<Array<{shortcut: string, inUse: boolean}>>;
|
|
576
576
|
}
|
|
577
577
|
/**
|
|
578
578
|
* Message used in the `onVisibilityModeChanged` invocation.
|
|
@@ -5905,7 +5905,7 @@ declare namespace Office {
|
|
|
5905
5905
|
* @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type {@link Office.AsyncResult}.
|
|
5906
5906
|
* The `value` property of the result is an array containing one or more JavaScript objects specifying the formatting of their corresponding cells.
|
|
5907
5907
|
*/
|
|
5908
|
-
getFormatsAsync(cellReference?: any, formats?: any[], options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<
|
|
5908
|
+
getFormatsAsync(cellReference?: any, formats?: any[], options?: Office.AsyncContextOptions, callback?: (result: AsyncResult< Array<{ cells: any, format: any}>>) => void): void;
|
|
5909
5909
|
/**
|
|
5910
5910
|
* Gets the formatting on specified items in the table.
|
|
5911
5911
|
*
|
|
@@ -5958,7 +5958,7 @@ declare namespace Office {
|
|
|
5958
5958
|
* @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type {@link Office.AsyncResult}.
|
|
5959
5959
|
* The `value` property of the result is an array containing one or more JavaScript objects specifying the formatting of their corresponding cells.
|
|
5960
5960
|
*/
|
|
5961
|
-
getFormatsAsync(cellReference?: any, formats?: any[], callback?: (result: AsyncResult<
|
|
5961
|
+
getFormatsAsync(cellReference?: any, formats?: any[], callback?: (result: AsyncResult< Array<{ cells: any, format: any}>>) => void): void;
|
|
5962
5962
|
/**
|
|
5963
5963
|
* Sets formatting on specified items and data in the table.
|
|
5964
5964
|
*
|
|
@@ -11661,7 +11661,7 @@ declare namespace Office {
|
|
|
11661
11661
|
* </tr>
|
|
11662
11662
|
* </table>
|
|
11663
11663
|
*/
|
|
11664
|
-
getEntitiesByType(entityType: MailboxEnums.EntityType | string):
|
|
11664
|
+
getEntitiesByType(entityType: MailboxEnums.EntityType | string): Array<string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion>;
|
|
11665
11665
|
/**
|
|
11666
11666
|
* Returns well-known entities in the selected item that pass the named filter defined in an XML manifest file.
|
|
11667
11667
|
*
|
|
@@ -11688,7 +11688,7 @@ declare namespace Office {
|
|
|
11688
11688
|
*
|
|
11689
11689
|
* @param name - The name of the `ItemHasKnownEntity` rule element that defines the filter to match.
|
|
11690
11690
|
*/
|
|
11691
|
-
getFilteredEntitiesByName(name: string):
|
|
11691
|
+
getFilteredEntitiesByName(name: string): Array<string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion>;
|
|
11692
11692
|
/**
|
|
11693
11693
|
* 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}.
|
|
11694
11694
|
*
|
|
@@ -17123,7 +17123,7 @@ declare namespace Office {
|
|
|
17123
17123
|
* </tr>
|
|
17124
17124
|
* </table>
|
|
17125
17125
|
*/
|
|
17126
|
-
getEntitiesByType(entityType: MailboxEnums.EntityType | string):
|
|
17126
|
+
getEntitiesByType(entityType: MailboxEnums.EntityType | string): Array<string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion>;
|
|
17127
17127
|
/**
|
|
17128
17128
|
* Returns well-known entities in the selected item that pass the named filter defined in an XML manifest file.
|
|
17129
17129
|
*
|
|
@@ -17150,7 +17150,7 @@ declare namespace Office {
|
|
|
17150
17150
|
*
|
|
17151
17151
|
* @param name - The name of the `ItemHasKnownEntity` rule element that defines the filter to match.
|
|
17152
17152
|
*/
|
|
17153
|
-
getFilteredEntitiesByName(name: string):
|
|
17153
|
+
getFilteredEntitiesByName(name: string): Array<string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion>;
|
|
17154
17154
|
/**
|
|
17155
17155
|
* 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}.
|
|
17156
17156
|
*
|
|
@@ -17788,7 +17788,7 @@ declare namespace Office {
|
|
|
17788
17788
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
17789
17789
|
* of type `Office.AsyncResult`. If adding the recipients fails, the `asyncResult.error` property will contain an error code.
|
|
17790
17790
|
*/
|
|
17791
|
-
addAsync(recipients:
|
|
17791
|
+
addAsync(recipients: Array<string | EmailUser | EmailAddressDetails>, options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
17792
17792
|
/**
|
|
17793
17793
|
* Adds a recipient list to the existing recipients for an appointment or message.
|
|
17794
17794
|
*
|
|
@@ -17820,7 +17820,7 @@ declare namespace Office {
|
|
|
17820
17820
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
17821
17821
|
* of type `Office.AsyncResult`. If adding the recipients fails, the `asyncResult.error` property will contain an error code.
|
|
17822
17822
|
*/
|
|
17823
|
-
addAsync(recipients:
|
|
17823
|
+
addAsync(recipients: Array<string | EmailUser | EmailAddressDetails>, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
17824
17824
|
/**
|
|
17825
17825
|
* Gets a recipient list for an appointment or message.
|
|
17826
17826
|
*
|
|
@@ -17945,7 +17945,7 @@ declare namespace Office {
|
|
|
17945
17945
|
* type `Office.AsyncResult`. If setting the recipients fails the `asyncResult.error` property will contain a code that
|
|
17946
17946
|
* indicates any error that occurred while adding the data.
|
|
17947
17947
|
*/
|
|
17948
|
-
setAsync(recipients:
|
|
17948
|
+
setAsync(recipients: Array<string | EmailUser | EmailAddressDetails>, options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
17949
17949
|
/**
|
|
17950
17950
|
* Sets a recipient list for an appointment or message.
|
|
17951
17951
|
*
|
|
@@ -17980,7 +17980,7 @@ declare namespace Office {
|
|
|
17980
17980
|
* type `Office.AsyncResult`. If setting the recipients fails the `asyncResult.error` property will contain a code that
|
|
17981
17981
|
* indicates any error that occurred while adding the data.
|
|
17982
17982
|
*/
|
|
17983
|
-
setAsync(recipients:
|
|
17983
|
+
setAsync(recipients: Array<string | EmailUser | EmailAddressDetails>, callback: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
17984
17984
|
}
|
|
17985
17985
|
/**
|
|
17986
17986
|
* Provides change status of recipients fields when the `Office.EventType.RecipientsChanged` event is raised.
|
|
@@ -28276,7 +28276,7 @@ declare namespace Excel {
|
|
|
28276
28276
|
* @remarks
|
|
28277
28277
|
* [Api set: ExcelApi 1.12]
|
|
28278
28278
|
*/
|
|
28279
|
-
selectedItems?:
|
|
28279
|
+
selectedItems?: Array<string | PivotItem>;
|
|
28280
28280
|
}
|
|
28281
28281
|
/**
|
|
28282
28282
|
* Configurable template for a value filter to apply to a PivotField.
|
|
@@ -33908,7 +33908,7 @@ declare namespace Excel {
|
|
|
33908
33908
|
* @param key The key of the new setting.
|
|
33909
33909
|
* @param value The value for the new setting.
|
|
33910
33910
|
*/
|
|
33911
|
-
add(key: string, value: string | number | boolean | Date |
|
|
33911
|
+
add(key: string, value: string | number | boolean | Date | any[] | any): Excel.Setting;
|
|
33912
33912
|
/**
|
|
33913
33913
|
* Gets the number of settings in the collection.
|
|
33914
33914
|
*
|
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.361",
|
|
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": "
|
|
48
|
+
"typesPublisherContentHash": "c4f7eccb9f8b8844f1ba8905ed14bf9ef6d424e30e95d1bfbe344cc7e1d6e0e0",
|
|
49
49
|
"typeScriptVersion": "4.5"
|
|
50
50
|
}
|