mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Handling multiple data files
This commit is contained in:
parent
d9b424cbd1
commit
728931d56e
4 changed files with 172 additions and 112 deletions
|
@ -17,9 +17,13 @@ export interface Subject {
|
|||
Questions: Array<Question>
|
||||
}
|
||||
|
||||
export interface QuestionDb {
|
||||
name: string
|
||||
export interface DataFile {
|
||||
path: string
|
||||
name: string
|
||||
shouldSave: (recData: any) => boolean
|
||||
}
|
||||
|
||||
export interface QuestionDb extends DataFile {
|
||||
data: Array<Subject>
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue