Lotsa typescript bullshit

This commit is contained in:
mrfry 2020-11-24 10:47:04 +01:00
parent b7ac485689
commit b927988017
65 changed files with 801 additions and 8447 deletions

View file

@ -1,3 +1,5 @@
import express from 'express'
export interface QuestionData {
type: string
images?: Array<string>
@ -26,3 +28,18 @@ export interface User {
pw: string
created: Date
}
export interface ModuleType {
app: express.Application
dailyAction?: Function
}
// TODO: add more props based on db
export interface User {
id: number
pw: string
pwRequestCount: number
pwGotFromCID: number
avaiblePWRequests: number
loginCount: number
}