UNPKG

@sap-cloud-sdk/odata-common

Version:

SAP Cloud SDK for JavaScript common functions of OData client generator and OpenAPI clint generator.

11 lines (10 loc) 510 B
import type { EntityBase } from '../entity-base'; import type { EntityApi } from '../entity-api'; /** * Helper function that maps an entity to its keys map with their original names. * @param entity - Entity to map. * @param entityApi - Entity API of the entity to get keys for. * @returns object that includes all keys that represent given entity * @internal */ export declare function getEntityKeys<EntityT extends EntityBase>(entity: EntityT, entityApi: EntityApi<EntityT, any>): Record<string, any>;