mirror of
https://github.com/tcgdex/compiler.git
synced 2025-04-22 10:42:09 +00:00
7 lines
321 B
TypeScript
7 lines
321 B
TypeScript
export interface Endpoint<Index extends {} = {}, Item extends {} = {}, SubItem extends {} = {}, C = undefined> {
|
|
index(common: C): Promise<Index | undefined>
|
|
item(common: C): Promise<Record<string, Item> | undefined>
|
|
sub?(common: C, item: string): Promise<Record<string, SubItem> | undefined>
|
|
common?(): Promise<C>
|
|
}
|