-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
model.ts
35 lines (31 loc) · 817 Bytes
/
model.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
export interface Label {
en: string;
ja: string;
}
// * Each Question consists of image url, name and anime they are from in
// * both english and japanese
export interface Question {
image: string;
name: Label;
anime: Label;
// * True if User should select the Image
answer: boolean;
}
// * This is the type of JSON File * //
export interface CaptchaTypeJSON {
// * Title of Captcha (the one appearing on top)
title: string;
// * Questions
questions: Question[];
// * Things to show when user fails the Captcha
onFail: {
text: string;
// * ID of YouTube Video with ?start={start}
ytid: string;
};
}
export interface CaptchaType extends CaptchaTypeJSON {
// * Short name of Title
category: string;
}
export type CaptchaGetAll = { [category: string]: CaptchaTypeJSON };