forked from Alheimsins/b5-johnson-120-ipip-neo-pi-r
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
43 lines (35 loc) · 732 Bytes
/
Copy pathindex.d.ts
File metadata and controls
43 lines (35 loc) · 732 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
export type Language = {
code: string;
text: string;
};
export type Question = {
domain: string;
facet: number;
id: string;
keyed: string;
num: number;
text: string;
choices: Choice[];
};
export type Choice = {
color: number;
score: number;
text: string;
};
export type Item = {
lang: string;
shuffle: boolean;
};
export type Info = {
name: string;
id: string;
shortId: string;
time: number;
questions: number;
note: string;
languages: Language[];
};
export function getItems(lang?: string, shuffle?: boolean): Question[];
export function getInfo(): Info;
export function getChoices(lang?: string): Record<string, string[]>;
export function getQuestions(lang?: string): Question[];