import type { PickByType } from './PickByType'; type AllowedKeyType = number | string | symbol; /** * Just a Record of types with the key type */ export type EntitiesMap = Record; /** * Type for normalized list with a manual key type * * @example * NormalizedList<{ id: number; value: string }, number> -> { ids: number[]; entities: Record } * NormalizedList<{ id: number; value: string }, string> -> { ids: string[]; entities: Record } */ export interface NormalizedList { readonly entities: EntitiesMap; readonly ids: TKeyType[]; } /** * Type for normalized list which extract key type by its name in object * * @example * NormalizedListByKey<{ id: number; value: string }, 'id'> -> { ids: number[]; entities: Record } * NormalizedListByKey<{ id: number; value: string }, 'value'> -> { ids: string[]; entities: Record } */ export type NormalizedListByKey> = NormalizedList; export {}; //# sourceMappingURL=NormalizeList.d.ts.map