@types/office-js-preview 1.0.434 → 1.0.436

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.
@@ -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: Thu, 16 Nov 2023 22:35:34 GMT
11
+ * Last updated: Tue, 12 Dec 2023 18:35:46 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -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: (T | PromiseLike<T>)[]): Promise<T[]>;
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: (T | PromiseLike<T>)[]): Promise<T>;
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< ({ cells: any, format: any})[]>) => void): void;
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< ({ cells: any, format: any})[]>) => void): void;
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): (string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion)[];
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): (string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion)[];
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
  *
@@ -12813,7 +12813,8 @@ declare namespace Office {
12813
12813
  *
12814
12814
  * - In Outlook on the web, `setSignatureAsync` only works on messages.
12815
12815
  *
12816
- * - This method is supported in Message Compose on Outlook on Android and on iOS. For a sample scenario, see
12816
+ * - This method is supported in Message Compose on Outlook on Android. Support for this method in Message Compose on Outlook on iOS is currently being
12817
+ * rolled out. For a sample scenario, see
12817
12818
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
12818
12819
  * To learn more about APIs supported in Outlook mobile, see
12819
12820
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
@@ -12852,7 +12853,8 @@ declare namespace Office {
12852
12853
  *
12853
12854
  * - In Outlook on the web, `setSignatureAsync` only works on messages.
12854
12855
  *
12855
- * - This method is supported in Message Compose on Outlook on Android and on iOS. For a sample scenario, see
12856
+ * - This method is supported in Message Compose on Outlook on Android. Support for this method in Message Compose on Outlook on iOS is currently being
12857
+ * rolled out. For a sample scenario, see
12856
12858
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/mobile-event-based | Implement event-based activation in Outlook mobile add-ins}.
12857
12859
  * To learn more about APIs supported in Outlook mobile, see
12858
12860
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
@@ -16097,8 +16099,9 @@ declare namespace Office {
16097
16099
  *
16098
16100
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
16099
16101
  *
16100
- * **Important**: This method is supported in Message Compose on Outlook on Android and on iOS. For more information on supported APIs in
16101
- * Outlook mobile, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
16102
+ * **Important**: This method is supported in Message Compose in Outlook on Android. Support for this method in Message Compose on Outlook on iOS is currently
16103
+ * being rolled out. For more information on supported APIs in Outlook mobile, see
16104
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
16102
16105
  *
16103
16106
  * @param options - An object literal that contains one or more of the following properties:-
16104
16107
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
@@ -16126,8 +16129,9 @@ declare namespace Office {
16126
16129
  *
16127
16130
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
16128
16131
  *
16129
- * **Important**: This method is supported in Message Compose in Outlook on Android and on iOS. For more information on supported APIs in
16130
- * Outlook mobile, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
16132
+ * **Important**: This method is supported in Message Compose in Outlook on Android. Support for this method in Message Compose on Outlook on iOS is currently
16133
+ * being rolled out. For more information on supported APIs in Outlook mobile, see
16134
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
16131
16135
  *
16132
16136
  * @param callback - Optional. When the method completes, the function passed in the callback parameter is called with a single parameter,
16133
16137
  * `asyncResult`, which is an `Office.AsyncResult` object.
@@ -16236,8 +16240,9 @@ declare namespace Office {
16236
16240
  *
16237
16241
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
16238
16242
  *
16239
- * **Important**: This method is supported in Outlook on Android and on iOS. For more information on supported APIs in
16240
- * Outlook mobile, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
16243
+ * **Important**: This method is supported in Outlook on Android. Support for this method in Outlook on iOS is currently being rolled out.
16244
+ * For more information on supported APIs in Outlook mobile, see
16245
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
16241
16246
  *
16242
16247
  * @param options - An object literal that contains one or more of the following properties:-
16243
16248
  * `asyncContext`: Developers can provide any object they wish to access in the callback function.
@@ -16260,8 +16265,9 @@ declare namespace Office {
16260
16265
  *
16261
16266
  * **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Message Compose
16262
16267
  *
16263
- * **Important**: This method is supported in Outlook on Android and on iOS. For more information on supported APIs in
16264
- * Outlook mobile, see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
16268
+ * **Important**: This method is supported in Outlook on Android. Support for this method in Outlook on iOS is currently being rolled out.
16269
+ * For more information on supported APIs in Outlook mobile, see
16270
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
16265
16271
  *
16266
16272
  * @param callback - When the method completes, the function passed in the `callback` parameter is called with a single parameter of
16267
16273
  * type `Office.AsyncResult`. On success, the `asyncResult.value` property contains an object with the item's compose type
@@ -17584,7 +17590,7 @@ declare namespace Office {
17584
17590
  * </tr>
17585
17591
  * </table>
17586
17592
  */
17587
- getEntitiesByType(entityType: MailboxEnums.EntityType | string): (string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion)[];
17593
+ getEntitiesByType(entityType: MailboxEnums.EntityType | string): Array<string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion>;
17588
17594
  /**
17589
17595
  * Returns well-known entities in the selected item that pass the named filter defined in an XML manifest file.
17590
17596
  *
@@ -17611,7 +17617,7 @@ declare namespace Office {
17611
17617
  *
17612
17618
  * @param name - The name of the `ItemHasKnownEntity` rule element that defines the filter to match.
17613
17619
  */
17614
- getFilteredEntitiesByName(name: string): (string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion)[];
17620
+ getFilteredEntitiesByName(name: string): Array<string | Contact | MeetingSuggestion | PhoneNumber | TaskSuggestion>;
17615
17621
  /**
17616
17622
  * 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
17623
  *
@@ -18367,7 +18373,7 @@ declare namespace Office {
18367
18373
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
18368
18374
  * of type `Office.AsyncResult`. If adding the recipients fails, the `asyncResult.error` property will contain an error code.
18369
18375
  */
18370
- addAsync(recipients: (string | EmailUser | EmailAddressDetails)[], options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
18376
+ addAsync(recipients: Array<string | EmailUser | EmailAddressDetails>, options: Office.AsyncContextOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
18371
18377
  /**
18372
18378
  * Adds a recipient list to the existing recipients for an appointment or message.
18373
18379
  *
@@ -18399,7 +18405,7 @@ declare namespace Office {
18399
18405
  * @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
18400
18406
  * of type `Office.AsyncResult`. If adding the recipients fails, the `asyncResult.error` property will contain an error code.
18401
18407
  */
18402
- addAsync(recipients: (string | EmailUser | EmailAddressDetails)[], callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
18408
+ addAsync(recipients: Array<string | EmailUser | EmailAddressDetails>, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
18403
18409
  /**
18404
18410
  * Gets a recipient list for an appointment or message.
18405
18411
  *
@@ -18524,7 +18530,7 @@ declare namespace Office {
18524
18530
  * type `Office.AsyncResult`. If setting the recipients fails the `asyncResult.error` property will contain a code that
18525
18531
  * indicates any error that occurred while adding the data.
18526
18532
  */
18527
- setAsync(recipients: (string | EmailUser | EmailAddressDetails)[], options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<void>) => void): void;
18533
+ setAsync(recipients: Array<string | EmailUser | EmailAddressDetails>, options: Office.AsyncContextOptions, callback: (asyncResult: Office.AsyncResult<void>) => void): void;
18528
18534
  /**
18529
18535
  * Sets a recipient list for an appointment or message.
18530
18536
  *
@@ -18559,7 +18565,7 @@ declare namespace Office {
18559
18565
  * type `Office.AsyncResult`. If setting the recipients fails the `asyncResult.error` property will contain a code that
18560
18566
  * indicates any error that occurred while adding the data.
18561
18567
  */
18562
- setAsync(recipients: (string | EmailUser | EmailAddressDetails)[], callback: (asyncResult: Office.AsyncResult<void>) => void): void;
18568
+ setAsync(recipients: Array<string | EmailUser | EmailAddressDetails>, callback: (asyncResult: Office.AsyncResult<void>) => void): void;
18563
18569
  }
18564
18570
  /**
18565
18571
  * Provides change status of recipients fields when the `Office.EventType.RecipientsChanged` event is raised.
@@ -30306,7 +30312,7 @@ declare namespace Excel {
30306
30312
  * @remarks
30307
30313
  * [Api set: ExcelApi 1.12]
30308
30314
  */
30309
- selectedItems?: (string | PivotItem)[];
30315
+ selectedItems?: Array<string | PivotItem>;
30310
30316
  }
30311
30317
  /**
30312
30318
  * Configurable template for a value filter to apply to a PivotField.
@@ -37246,7 +37252,7 @@ declare namespace Excel {
37246
37252
  * @param key The key of the new setting.
37247
37253
  * @param value The value for the new setting.
37248
37254
  */
37249
- add(key: string, value: string | number | boolean | Date | Array<any> | any): Excel.Setting;
37255
+ add(key: string, value: string | number | boolean | Date | any[] | any): Excel.Setting;
37250
37256
  /**
37251
37257
  * Gets the number of settings in the collection.
37252
37258
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.434",
3
+ "version": "1.0.436",
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": "1795ef4de5ad5b87ba5ad9d22e415262e1d2178080628432f70edc846eff6c79",
49
- "typeScriptVersion": "4.5"
48
+ "typesPublisherContentHash": "e27948117bec43276a746f8eae24faa9b3a9310ddd350af6826fdeb54f0b96e7",
49
+ "typeScriptVersion": "4.6"
50
50
  }