mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
15 lines
224 B
TypeScript
15 lines
224 B
TypeScript
export interface ById<T> {
|
|
[id: string]: T
|
|
}
|
|
|
|
export type OneToMany = ById<string[]>
|
|
|
|
export interface OrderedById<T> {
|
|
byId: ById<T>
|
|
allIds: string[]
|
|
}
|
|
|
|
export interface PaginatedList {
|
|
[offset: number]: string[]
|
|
}
|