26 lines
418 B
TypeScript
26 lines
418 B
TypeScript
|
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;
|
||
|
}
|