-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoccer.d.ts
65 lines (57 loc) · 894 Bytes
/
soccer.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
type Player = {
number: number
name: string
position: string
caps: number
goals: number
club: string
}
type Team = {
name: string;
code: string;
flag: string;
players: Player[];
}
type Group = {
name: string;
teams: Team[];
}
type Round = {
name: string;
matches: Match[]
}
type Score = {
ft: string
ht: string
}
type Goals = {
name: string
minute: number
offset?: number
penalty?: boolean
owngoal?: boolean
}
type Match = {
num: number
date: string
time: string
home: Team
away: Team
score: Score
goalsHome: Goals[];
goalsAway: Goals[];
group: Group;
round: Round;
arena: Arena;
}
type ArenaLocation = {
lat: number
lng: number
}
type Arena = {
name: string
city: string
country: string
capacity: number
location: ArenaLocation
}