@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
9 lines • 486 B
TypeScript
import { Entity, Constructable } from '../entity';
/**
* Helper function that maps an entity to its keys map with their original names.
* @param entity - Entity to map
* @param entityConstructor - The constructor of the entity
* @returns object that includes all keys that represent given entity
*/
export declare function getEntityKeys<EntityT extends Entity>(entity: EntityT, entityConstructor: Constructable<EntityT>): Record<string, any>;
//# sourceMappingURL=get-keys.d.ts.map