Domain specific data files

This commit is contained in:
mrfry 2020-12-22 16:11:01 +01:00
parent 81577ad621
commit f87e165084
9 changed files with 174 additions and 71 deletions

View file

@ -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 {