torrents.csv/server/ui/src/interfaces.ts

26 lines
418 B
TypeScript
Raw Normal View History

2018-10-11 14:59:30 -07:00
export interface SearchParams {
q: string;
page: number;
size?: number;
}
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;
}
export interface State {
results: Results;
searchParams: SearchParams;
searching: Boolean;
}