mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Lotsa typescript bullshit
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user