@types/office-js-preview 1.0.434 → 1.0.435
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-preview/README.md +1 -1
- office-js-preview/index.d.ts +15 -15
- office-js-preview/package.json +2 -2
office-js-preview/README.md
CHANGED
|
@@ -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:
|
|
11
|
+
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/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.
|
|
@@ -571,7 +571,7 @@ declare namespace Office {
|
|
|
571
571
|
* @param shortcuts An array of shortcut combinations. For example, `["Ctrl+1", "Ctrl+2"]`.
|
|
572
572
|
* @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}]`.
|
|
573
573
|
*/
|
|
574
|
-
areShortcutsInUse(shortcuts: string[]): Promise<{shortcut: string, inUse: boolean}
|
|
574
|
+
areShortcutsInUse(shortcuts: string[]): Promise<Array<{shortcut: string, inUse: boolean}>>;
|
|
575
575
|
}
|
|
576
576
|
/**
|
|
577
577
|
* Message used in the `onVisibilityModeChanged` invocation.
|
|
@@ -5927,7 +5927,7 @@ declare namespace Office {
|
|
|
5927
5927
|
* @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type {@link Office.AsyncResult}.
|
|
5928
5928
|
* The `value` property of the result is an array containing one or more JavaScript objects specifying the formatting of their corresponding cells.
|
|
5929
5929
|
*/
|
|
5930
|
-
getFormatsAsync(cellReference?: any, formats?: any[], options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<
|
|
5930
|
+
getFormatsAsync(cellReference?: any, formats?: any[], options?: Office.AsyncContextOptions, callback?: (result: AsyncResult< Array<{ cells: any, format: any}>>) => void): void;
|
|
5931
5931
|
/**
|
|
5932
5932
|
* Gets the formatting on specified items in the table.
|
|
5933
5933
|
*
|
|
@@ -5980,7 +5980,7 @@ declare namespace Office {
|
|
|
5980
5980
|
* @param callback Optional. A function that is invoked when the callback returns, whose only parameter is of type {@link Office.AsyncResult}.
|
|
5981
5981
|
* The `value` property of the result is an array containing one or more JavaScript objects specifying the formatting of their corresponding cells.
|
|
5982
5982
|
*/
|
|
5983
|
-
getFormatsAsync(cellReference?: any, formats?: any[], callback?: (result: AsyncResult<
|
|
5983
|
+
getFormatsAsync(cellReference?: any, formats?: any[], callback?: (result: AsyncResult< Array<{ cells: any, format: any}>>) => void): void;
|
|
5984
5984
|
/**
|
|
5985
5985
|
* Sets formatting on specified items and data in the table.
|
|
5986
5986
|
*
|
|
@@ -11856,7 +11856,7 @@ declare namespace Office {
|
|
|
11856
11856
|
* </tr>
|
|
11857
11857
|
* </table>
|
|
11858
11858
|
*/
|
|
11859
|
-
getEntitiesByType(entityType: MailboxEnums.EntityType | string):
|
|
11859
|
+
getEntitiesByType(entityType: MailboxEnums.EntityType | string): Array<string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion>;
|
|
11860
11860
|
/**
|
|
11861
11861
|
* Returns well-known entities in the selected item that pass the named filter defined in an XML manifest file.
|
|
11862
11862
|
*
|
|
@@ -11883,7 +11883,7 @@ declare namespace Office {
|
|
|
11883
11883
|
*
|
|
11884
11884
|
* @param name - The name of the `ItemHasKnownEntity` rule element that defines the filter to match.
|
|
11885
11885
|
*/
|
|
11886
|
-
getFilteredEntitiesByName(name: string):
|
|
11886
|
+
getFilteredEntitiesByName(name: string): Array<string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion>;
|
|
11887
11887
|
/**
|
|
11888
11888
|
* 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}.
|
|
11889
11889
|
*
|
|
@@ -17584,7 +17584,7 @@ declare namespace Office {
|
|
|
17584
17584
|
* </tr>
|
|
17585
17585
|
* </table>
|
|
17586
17586
|
*/
|
|
17587
|
-
getEntitiesByType(entityType: MailboxEnums.EntityType | string):
|
|
17587
|
+
getEntitiesByType(entityType: MailboxEnums.EntityType | string): Array<string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion>;
|
|
17588
17588
|
/**
|
|
17589
17589
|
* Returns well-known entities in the selected item that pass the named filter defined in an XML manifest file.
|
|
17590
17590
|
*
|
|
@@ -17611,7 +17611,7 @@ declare namespace Office {
|
|
|
17611
17611
|
*
|
|
17612
17612
|
* @param name - The name of the `ItemHasKnownEntity` rule element that defines the filter to match.
|
|
17613
17613
|
*/
|
|
17614
|
-
getFilteredEntitiesByName(name: string):
|
|
17614
|
+
getFilteredEntitiesByName(name: string): Array<string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion>;
|
|
17615
17615
|
/**
|
|
17616
17616
|
* 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}.
|
|
17617
17617
|
*
|
|
@@ -18367,7 +18367,7 @@ declare namespace Office {
|
|
|
18367
18367
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
18368
18368
|
* of type `Office.AsyncResult`. If adding the recipients fails, the `asyncResult.error` property will contain an error code.
|
|
18369
18369
|
*/
|
|
18370
|
-
addAsync(recipients:
|
|
18370
|
+
addAsync(recipients: Array<string | EmailUser | EmailAddressDetails>, options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
18371
18371
|
/**
|
|
18372
18372
|
* Adds a recipient list to the existing recipients for an appointment or message.
|
|
18373
18373
|
*
|
|
@@ -18399,7 +18399,7 @@ declare namespace Office {
|
|
|
18399
18399
|
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
18400
18400
|
* of type `Office.AsyncResult`. If adding the recipients fails, the `asyncResult.error` property will contain an error code.
|
|
18401
18401
|
*/
|
|
18402
|
-
addAsync(recipients:
|
|
18402
|
+
addAsync(recipients: Array<string | EmailUser | EmailAddressDetails>, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
18403
18403
|
/**
|
|
18404
18404
|
* Gets a recipient list for an appointment or message.
|
|
18405
18405
|
*
|
|
@@ -18524,7 +18524,7 @@ declare namespace Office {
|
|
|
18524
18524
|
* type `Office.AsyncResult`. If setting the recipients fails the `asyncResult.error` property will contain a code that
|
|
18525
18525
|
* indicates any error that occurred while adding the data.
|
|
18526
18526
|
*/
|
|
18527
|
-
setAsync(recipients:
|
|
18527
|
+
setAsync(recipients: Array<string | EmailUser | EmailAddressDetails>, options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
18528
18528
|
/**
|
|
18529
18529
|
* Sets a recipient list for an appointment or message.
|
|
18530
18530
|
*
|
|
@@ -18559,7 +18559,7 @@ declare namespace Office {
|
|
|
18559
18559
|
* type `Office.AsyncResult`. If setting the recipients fails the `asyncResult.error` property will contain a code that
|
|
18560
18560
|
* indicates any error that occurred while adding the data.
|
|
18561
18561
|
*/
|
|
18562
|
-
setAsync(recipients:
|
|
18562
|
+
setAsync(recipients: Array<string | EmailUser | EmailAddressDetails>, callback: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
18563
18563
|
}
|
|
18564
18564
|
/**
|
|
18565
18565
|
* Provides change status of recipients fields when the `Office.EventType.RecipientsChanged` event is raised.
|
|
@@ -30306,7 +30306,7 @@ declare namespace Excel {
|
|
|
30306
30306
|
* @remarks
|
|
30307
30307
|
* [Api set: ExcelApi 1.12]
|
|
30308
30308
|
*/
|
|
30309
|
-
selectedItems?:
|
|
30309
|
+
selectedItems?: Array<string | PivotItem>;
|
|
30310
30310
|
}
|
|
30311
30311
|
/**
|
|
30312
30312
|
* Configurable template for a value filter to apply to a PivotField.
|
|
@@ -37246,7 +37246,7 @@ declare namespace Excel {
|
|
|
37246
37246
|
* @param key The key of the new setting.
|
|
37247
37247
|
* @param value The value for the new setting.
|
|
37248
37248
|
*/
|
|
37249
|
-
add(key: string, value: string | number | boolean | Date |
|
|
37249
|
+
add(key: string, value: string | number | boolean | Date | any[] | any): Excel.Setting;
|
|
37250
37250
|
/**
|
|
37251
37251
|
* Gets the number of settings in the collection.
|
|
37252
37252
|
*
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.435",
|
|
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,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "c446ef08a276e491a7184b6b5c02c3235d4d980a44b00fa4fea70350fac63f88",
|
|
49
49
|
"typeScriptVersion": "4.5"
|
|
50
50
|
}
|