-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
37 lines (35 loc) · 1.24 KB
/
types.d.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
export type Beer = {
href: string; // untappd page
name: string;
type: string; // Beer variety
brewery_href: string; // brewery's untappd page
brewery_name: string;
image: string; // untappd icon
rating: number; // untappd rating
rating_count: number;
abv: number; // percent alcohol
ibu: number; // international
images: string[]; // untappd photos
description: string; // untappd description
can_price: number; // fictional price (see README)
bottle_price: number; // fictional price (see README)
}
type Brewery = {
href: string; // untappd page
name: string;
type: string;
city: string;
region: string; // US State
country: string; // "United States"
image: string; // untappd icon
rating: number; // untappd rating
rating_count: number;
fan_count: number; // number of untappd users who "liked" the brewery
images: string[]; // untappd photos
beer_count: number;
description: string; // untappd description
}
type AmericanAles = {
beers: Beer[];
breweries: Brewery[];
}