torrents.csv/server/ui/src/interfaces.ts
2019-02-05 17:23:45 -08:00

24 lines
385 B
TypeScript

export interface SearchParams {
q: string;
page: number;
size?: number;
type_: string;
}
export interface Results {
torrents: Array<Torrent>;
}
export interface Torrent {
infohash: string;
name: string;
size_bytes: number;
created_unix: number;
seeders: number;
leechers: number;
completed: number;
scraped_date: number;
index_: number;
path: string;
}