-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
45 lines (40 loc) · 798 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
export interface RouterType {
title: string;
path: string;
element: React.ReactElement;
}
interface Thumbnail {
lqip: string;
height: number;
width: number;
alt_text: string;
}
export interface Artwork {
id: number;
title: string;
artist_title: string | null;
main_reference_number: string;
date_display: string;
place_of_origin: string;
credit_line: string;
dimensions: string;
image_id: string;
thumbnail: Thumbnail;
is_public_domain: boolean;
}
export interface ArtworksResponse {
data: Artwork[];
}
export interface SearchResult {
_score: number;
id: number;
api_model: string;
api_link: string;
is_boosted: boolean;
title: string;
thumbnail: Thumbnail;
timestamp: string;
}
export interface SearchResponse {
data: SearchResult[];
}