diff --git a/types/es-abstract/test/es2015.test.ts b/types/es-abstract/test/es2015.test.ts index 67ed507987353e..79e5682382dc37 100644 --- a/types/es-abstract/test/es2015.test.ts +++ b/types/es-abstract/test/es2015.test.ts @@ -35,7 +35,7 @@ expectType< | undefined >(ES2015.Type(any)); -ES2015.ToPrimitive(any); // $ExpectType primitive +expectType(ES2015.ToPrimitive(any)); ES2015.ToInt16(any); // $ExpectType number ES2015.ToInt8(any); // $ExpectType number ES2015.ToUint8(any); // $ExpectType number diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 2d623f5c32160b..43513859044de4 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -62640,48 +62640,42 @@ declare namespace Excel { * Provides information about the `LinkedEntityCellValue` that was requested given a specified `LinkedEntityId`. * * @remarks - * [Api set: ExcelApi BETA (PREVIEW ONLY)] - * @beta + * [Api set: ExcelApi 1.21] */ interface LinkedEntityCellValueLoadedEventArgs { /** * Any error encountered during the request to load the `LinkedEntityCellValue`. * * @remarks - * [Api set: ExcelApi BETA (PREVIEW ONLY)] - * @beta + * [Api set: ExcelApi 1.21] */ error?: string; /** * Gets the `LinkedEntityId` of the requested `LinkedEntityCellValue`. * * @remarks - * [Api set: ExcelApi BETA (PREVIEW ONLY)] - * @beta + * [Api set: ExcelApi 1.21] */ id: LinkedEntityId; /** * Gets the `LinkedEntityCellValue` of the requested `LinkedEntityId`. If the load operation failed, this property is `null`. * * @remarks - * [Api set: ExcelApi BETA (PREVIEW ONLY)] - * @beta + * [Api set: ExcelApi 1.21] */ linkedEntityCellValue?: LinkedEntityCellValue; /** * Gets the source of the event. See `Excel.EventSource` for details. * * @remarks - * [Api set: ExcelApi BETA (PREVIEW ONLY)] - * @beta + * [Api set: ExcelApi 1.21] */ source: Excel.EventSource | "Local" | "Remote"; /** * Gets the type of the event. See `Excel.EventType` for details. * * @remarks - * [Api set: ExcelApi BETA (PREVIEW ONLY)] - * @beta + * [Api set: ExcelApi 1.21] */ type: "LinkedEntityDataDomainLinkedEntityCellValueLoaded"; } @@ -62990,8 +62984,7 @@ declare namespace Excel { If found, the `LinkedEntityCellValue` object will be returned through the `LinkedEntityCellValueLoaded` event. * * @remarks - * [Api set: ExcelApi BETA (PREVIEW ONLY)] - * @beta + * [Api set: ExcelApi 1.21] * * @param id A specific `LinkedEntityId` */ @@ -63028,10 +63021,11 @@ declare namespace Excel { * Occurs when the request to load a `LinkedEntityCellValue` is completed. * * @remarks - * [Api set: ExcelApi BETA (PREVIEW ONLY)] + * [Api set: ExcelApi 1.21] + * + * This event isn't supported in Excel on the web. * * @eventproperty - * @beta */ readonly onLinkedEntityCellValueLoaded: OfficeExtension.EventHandlers; /** diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 9798fa4d830743..5e2b5a9b944e29 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -57630,6 +57630,49 @@ declare namespace Excel { */ toJSON(): Excel.Interfaces.SlicerItemCollectionData; } + /** + * Provides information about the `LinkedEntityCellValue` that was requested given a specified `LinkedEntityId`. + * + * @remarks + * [Api set: ExcelApi 1.21] + */ + interface LinkedEntityCellValueLoadedEventArgs { + /** + * Any error encountered during the request to load the `LinkedEntityCellValue`. + * + * @remarks + * [Api set: ExcelApi 1.21] + */ + error?: string; + /** + * Gets the `LinkedEntityId` of the requested `LinkedEntityCellValue`. + * + * @remarks + * [Api set: ExcelApi 1.21] + */ + id: LinkedEntityId; + /** + * Gets the `LinkedEntityCellValue` of the requested `LinkedEntityId`. If the load operation failed, this property is `null`. + * + * @remarks + * [Api set: ExcelApi 1.21] + */ + linkedEntityCellValue?: LinkedEntityCellValue; + /** + * Gets the source of the event. See `Excel.EventSource` for details. + * + * @remarks + * [Api set: ExcelApi 1.21] + */ + source: Excel.EventSource | "Local" | "Remote"; + /** + * Gets the type of the event. See `Excel.EventType` for details. + * + * @remarks + * [Api set: ExcelApi 1.21] + */ + type: "LinkedEntityDataDomainLinkedEntityCellValueLoaded"; + } /** * Represents a specific category or field of information that shares some common characteristics or attributes. A data domain is linked to a data provider, that acts as the data source for `LinkedEntityCellValue` objects in the workbook. @@ -57912,6 +57955,16 @@ declare namespace Excel { * @returns The linked entity data domain with the given `id`. If there are multiple linked entity data domains with the same `id`, the one defined by this Office Add-in will be returned. */ getItemOrNullObject(id: string): Excel.LinkedEntityDataDomain; + /** + * Submits a request to load the `LinkedEntityCellValue` object with the specified `LinkedEntityId`. + If found, the `LinkedEntityCellValue` object will be returned through the `LinkedEntityCellValueLoaded` event. + * + * @remarks + * [Api set: ExcelApi 1.21] + * + * @param id A specific `LinkedEntityId` + */ + loadLinkedEntityCellValue(id: LinkedEntityId): void; /** * Refreshes all `LinkedEntityCellValue` objects of all linked entity data domains in this collection. The refresh request can fail if the data providers are busy or temporarily inaccessible. @@ -57938,6 +57991,17 @@ declare namespace Excel { * @param propertyNamesAndPaths `propertyNamesAndPaths.select` is a comma-delimited string that specifies the properties to load, and `propertyNamesAndPaths.expand` is a comma-delimited string that specifies the navigation properties to load. */ load(propertyNamesAndPaths?: OfficeExtension.LoadOption): Excel.LinkedEntityDataDomainCollection; + /** + * Occurs when the request to load a `LinkedEntityCellValue` is completed. + * + * @remarks + * [Api set: ExcelApi 1.21] + * + * This event isn't supported in Excel on the web. + * + * @eventproperty + */ + readonly onLinkedEntityCellValueLoaded: OfficeExtension.EventHandlers; /** * Occurs when a new linked entity data domain is added to the workbook. *