mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2026-04-28 19:27:38 +02:00
56 lines
878 B
TypeScript
56 lines
878 B
TypeScript
import express from 'express'
|
|
|
|
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 DataFile {
|
|
path: string
|
|
name: string
|
|
shouldSave: (recData: any) => boolean
|
|
}
|
|
|
|
export interface QuestionDb extends DataFile {
|
|
data: Array<Subject>
|
|
index: Number
|
|
}
|
|
|
|
export interface User {
|
|
id: number
|
|
pw: string
|
|
created: Date
|
|
}
|
|
|
|
export interface ModuleType {
|
|
app: express.Application
|
|
dailyAction?: Function
|
|
}
|
|
|
|
export interface User {
|
|
id: number
|
|
pw: string
|
|
pwRequestCount: number
|
|
pwGotFromCID: number
|
|
avaiblePWRequests: number
|
|
loginCount: number
|
|
}
|
|
|
|
export interface Request extends express.Request {
|
|
cookies: any
|
|
session: any
|
|
busboy: any
|
|
}
|