domain-objects
Version:
A simple, convenient way to represent domain objects, leverage domain knowledge, and add runtime validation in your code base.
15 lines (14 loc) • 471 B
TypeScript
/**
* examples:
* - HomeAddress, 1 => Address
* - HomeAddress, 2 => null
* - PlaceExternalId, 1 => ExternalId
* - PlaceExternalId, 2 => null
* - TrainStationDockingGate, 2 => DockingGate
* - TrainStationDockingGate, 3 => Gate
* - TrainStationDockingGate, 4 => null
*/
export declare const getDomainObjectNameAfterDroppingSomeQualifiers: ({ domainObjectName, qualifiersToDrop, }: {
domainObjectName: string;
qualifiersToDrop: number;
}) => string | null;