-
Notifications
You must be signed in to change notification settings - Fork 0
/
new-types.d.ts
43 lines (33 loc) · 933 Bytes
/
new-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
38
39
40
41
42
43
declare module 'chartjs-adapter-luxon';
type RGB = `rgb(${number}, ${number}, ${number})`;
type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
type HEX = `#${string}`;
type Color = RGB | RGBA | HEX;
type PromiseArray<T> = {
[P in keyof T]: Promise<T[P]>;
};
type MemberName = "ririka" | "ao" | "kanade" | "hajime" | "raden";
type MemberNames = ["ririka", "ao", "kanade", "hajime", "raden"];
interface DbSubsTableRow {
name: MemberName,
subCount: number,
timestamp: string,
};
type YouTubeId = string;
type MemberStaticData = {
name: MemberName,
id: YoutubeId,
channelNameEn: string,
channelNameJp: string,
color: Color,
colorLight: Color,
pfp: string[],
};
interface CurrentMemberData extends MemberStaticData, DbSubsTableRow {
since14dAgo: number,
};
type TimeSeriesGraphXY = {
x: string,
y: number,
}
// type Asdf = ExpandRecursively<CurrentMemberData>;