Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/es-abstract/test/es2015.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ expectType<
| undefined
>(ES2015.Type<any>(any));

ES2015.ToPrimitive(any); // $ExpectType primitive
expectType<null | undefined | string | symbol | number | boolean | bigint>(ES2015.ToPrimitive(any));
ES2015.ToInt16(any); // $ExpectType number
ES2015.ToInt8(any); // $ExpectType number
ES2015.ToUint8(any); // $ExpectType number
Expand Down
26 changes: 10 additions & 16 deletions types/office-js-preview/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down Expand Up @@ -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`
*/
Expand Down Expand Up @@ -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<Excel.LinkedEntityCellValueLoadedEventArgs>;
/**
Expand Down
64 changes: 64 additions & 0 deletions types/office-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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<Excel.LinkedEntityCellValueLoadedEventArgs>;
/**
* Occurs when a new linked entity data domain is added to the workbook.
*
Expand Down