/** * JavaScript primitive types */ export declare type Primitive = void | undefined | null | boolean | number | string | bigint | symbol; /** * Keep only the primitive properties of an object type */ export declare type OnlyPrimitiveProps = Pick; /** * Remove the ID property from an object type */ export declare type WithoutID = Omit; /** * Keep only the primitive properties of an entity object, ID excluded */ export declare type EntityPrimDTO = OnlyPrimitiveProps>; /** * Keep only the primitive properties of an entity object and convert its relations to arrays of identifiers */ export declare type EntityDTO = { [Prop in keyof EntityPrimDTO]: EntityPrimDTO[Prop] extends Array<{ id: string; }> ? string[] : EntityPrimDTO[Prop]; }; /** * Get the default sort DTO for a given entity */ export declare type SortEntityDTO = { [K in keyof OnlyPrimitiveProps]: 'ASC' | 'DESC' | 1 | -1; };