-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
27 lines (25 loc) · 823 Bytes
/
types.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
import {
Context,
SessionFlavor,
} from "https://deno.land/x/[email protected]/mod.ts";
import { EmojiFlavor } from "https://deno.land/x/[email protected]/mod.ts";
export type PollInfoType = {
pollId: string;
questionId: string;
correctAnsIndex: number;
};
// deno-lint-ignore no-explicit-any
export type chatDescription = [number, string, any[][], number, number, string];
interface SessionData {
chatDescription: chatDescription;
/*
* Set to 1-100 to indicate the question count
* Set to 0 to indicate all questions
* Set to -1 to indicate all the questions which were previously incorrect
*/
questionPreference: number;
pollInfo: PollInfoType[];
uploadedFileLink: string | null;
solvedCorrectly: number;
}
export type customContext = EmojiFlavor<Context & SessionFlavor<SessionData>>;