This commit is contained in:
Timo Hocker 2020-05-04 20:13:41 +02:00
parent 3838c8c978
commit a94c741624
2 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,10 @@ export abstract class ControlModel extends Assignable {
}
}
public get_data (): Record<string, string|number|boolean> {
return super.get_data () as Record<string, string|number|boolean>;
}
public get (key: string): string|number|boolean {
return this.data[key] as string|number|boolean;
}

View File

@ -36,6 +36,10 @@ export abstract class DatabaseModel extends Assignable {
this.data[key] = value;
}
public get_data (): Record<string, string|number|boolean> {
return super.get_data () as Record<string, string|number|boolean>;
}
public abstract async read(): Promise<boolean>;
public abstract async write(): Promise<boolean>;
public abstract async delete(): Promise<boolean>;