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:
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
|
||||
}
|
Reference in New Issue
Block a user