-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathglobal.d.ts
45 lines (41 loc) · 869 Bytes
/
global.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
interface User {
id: string;
name?: string;
connected: boolean;
disconnectTime: number;
}
interface ChatMessage {
timestamp: string;
videoTS?: number;
id: string;
cmd: string;
msg: string;
}
interface RawQuestion {
val: number;
cat: string;
x?: number;
y?: number;
q?: string;
a?: string;
dd?: boolean;
}
interface Question {
value: number;
category: string;
question?: string;
answer?: string;
daily_double?: boolean;
}
type GameOptions = {
number?: string;
filter?: string;
makeMeHost?: boolean;
allowMultipleCorrect?: boolean;
// Turns on AI judge by default (otherwise needs to be enabled per game)
enableAIJudge?: boolean;
// timeout to use for DD wagers and question answers
answerTimeout?: number;
// timeout to use for final wagers and answers (all players participate)
finalTimeout?: number;
}