mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Renamed js files to ts
This commit is contained in:
parent
0bddef2b78
commit
7fcb15da88
54 changed files with 8521 additions and 60 deletions
28
src/types/basicTypes.ts
Normal file
28
src/types/basicTypes.ts
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue