mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Domain specific data files
This commit is contained in:
parent
81577ad621
commit
f87e165084
9 changed files with 174 additions and 71 deletions
|
@ -20,12 +20,20 @@ export interface Subject {
|
|||
export interface DataFile {
|
||||
path: string
|
||||
name: string
|
||||
shouldSave: (recData: any) => boolean
|
||||
shouldSave: {
|
||||
location?: {
|
||||
val: string
|
||||
}
|
||||
version?: {
|
||||
compare: string
|
||||
val: string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export interface QuestionDb extends DataFile {
|
||||
data: Array<Subject>
|
||||
index: Number
|
||||
index: number
|
||||
}
|
||||
|
||||
export interface User {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue