shoulda finished id, move route
This commit is contained in:
parent
645e0a0d2b
commit
1cba63df34
4 changed files with 118 additions and 8 deletions
35
types/booruResponses.d.ts
vendored
Normal file
35
types/booruResponses.d.ts
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
type Data = {
|
||||
post?: Post;
|
||||
posts?: Post[];
|
||||
[key: string]: unknown;
|
||||
};
|
||||
|
||||
interface Rule34Post {
|
||||
preview_url: string;
|
||||
sample_url: string;
|
||||
file_url: string;
|
||||
directory: number;
|
||||
hash: string;
|
||||
width: number;
|
||||
height: number;
|
||||
id: number;
|
||||
image: string;
|
||||
change: number;
|
||||
owner: string;
|
||||
parent_id: number;
|
||||
rating: string;
|
||||
sample: boolean;
|
||||
sample_height: number;
|
||||
sample_width: number;
|
||||
score: number;
|
||||
tags: string;
|
||||
source: string;
|
||||
status: string;
|
||||
has_notes: boolean;
|
||||
comment_count: number;
|
||||
}
|
||||
|
||||
type BooruPost = Rule34Post & {
|
||||
post_url: string;
|
||||
file_url: string;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue