Represents an object that is related to an entity. Objects that have the same structure would be represented by the same type in TypeScript. This interface allows to identify equal structures as different structures if they are related to different entities.

interface EntityIdentifiable<
    T extends EntityBase,
    DeSerializersT extends DeSerializers,
> {
    _deSerializers: DeSerializersT;
    _entity: T;
}

Type Parameters

Implemented by

Properties

_deSerializers: DeSerializersT

Dummy property to also include the deserializer type in the structure of the entity type.

_entity: T

Dummy property whose type makes structurally identical entities distinguishable in TypeScript.

Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.