-
Notifications
You must be signed in to change notification settings - Fork 1
/
socket-actions.d.ts
63 lines (59 loc) · 1.08 KB
/
socket-actions.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
interface Song {
name: string;
path: string;
coverUrl?: string;
}
interface Album {
name: string;
coverUrl: string;
songs: Array<Song>;
volumes: {
[key: string]: number;
}
}
interface PlayParams {
songName: string;
albumName: string;
}
//declare function getPrettyTimer(secondsLeft: number): string;
interface OpenWeatherMapResponse {
coord: {
lon: number;
lat: number;
}
weather: Array<{
id: number;
main: string;
description: string;
icon: string;
}>
base: string;
main: {
temp: number;
feels_like: number;
temp_min: number;
temp_max: number;
pressure: number;
humidity: number;
};
visibility: number;
wind: {
speed: number;
deg: number;
}
clouds: {
all: number;
}
dt: number;
sys: {
type: number;
id: number;
country: string;
sunrise: number;
sunset: number;
}
timezone: number;
id: number;
name: string;
cod: number;
}