Renamed js files to ts

This commit is contained in:
mrfry 2020-11-23 15:10:24 +01:00
parent 0bddef2b78
commit 7fcb15da88
54 changed files with 8521 additions and 60 deletions

28
src/types/basicTypes.ts Normal file
View file

@ -0,0 +1,28 @@
export interface QuestionData {
type: string
images?: Array<string>
hashedImages?: Array<string>
}
export interface Question {
Q: string
A: string
data: QuestionData
}
export interface Subject {
Name: string
Questions: Array<Question>
}
export interface QuestionDb {
name: string
path: string
data: Array<Subject>
}
export interface User {
id: number
pw: string
created: Date
}