-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtyping.d.ts
More file actions
52 lines (48 loc) · 906 Bytes
/
typing.d.ts
File metadata and controls
52 lines (48 loc) · 906 Bytes
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
interface CoinsT {
data: Array<{
id: number;
rank: number;
slug: string;
name: string;
symbol: string;
category: string;
type: string;
volume24hBase: number;
circulatingSupply: number;
totalSupply: number;
maxSupply: string;
values: {
USD: ValueT;
};
lastUpdated: Data;
tokens: string;
}>;
}
interface OneCoinT {
data: {
athPrice: PriceT;
atlPrice: PriceT;
price: CurrentPriceT;
};
}
type PriceT = {
BTC: numbe;
ETH: number;
USD: number;
date: Date;
dateBTC: Date;
dateETH: Date;
};
type CurrentPriceT = Omit<PriceT, "date" | "dateBTC" | "dateETH">;
interface ValueT {
high24h: number;
low24h: number;
marketCap: number;
percentChange3m: number;
percentChange6m: number;
percentChange7d: number;
percentChange24h: number;
percentChange30d: number;
price: number;
volume24h: number;
}