export interface ById { [id: string]: T } export type OneToMany = ById export interface OrderedById { byId: ById allIds: string[] } export interface PaginatedList { [offset: number]: string[] } export interface CollectionById { byId: ById allIds: string[] }