aboutsummaryrefslogtreecommitdiff
path: root/api/api.ts
blob: 4ba44e7c1938adcd9a6a4b84ac2a20dfb5f3dbb4 (plain)
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
export interface userInfo {
	avatar?: string|null,
	coutry?: string|null,
	id?: string,
	registered?: number,
	type?: string,
	username?: string,
};

export type ruleset = {
	timelimit: {
		enabled: boolean;
		minutes?: number;
		seconds?: number;
		addmove?: number;
		shared: boolean;
	},
	ranked: boolean;
}

export type userColors = {
	diskA: string;
	diskB: string;
	background: string;
}

export interface userPreferences {
	darkMode?: boolean;
	ruleset?: ruleset;
	userColors?: userColors;
}