export type Table = { byId: { [key: string]: T }; allIds: string[] }