This commit is contained in:
Timo Hocker 2020-05-02 21:14:54 +02:00
parent 174739ad17
commit 161d4573c7
2 changed files with 3 additions and 3 deletions

View File

@ -6,13 +6,13 @@
*/ */
export abstract class ControlModel { export abstract class ControlModel {
protected data: Record<string, string|number|boolean>; protected data: Record<string, string|number|boolean> = {};
public abstract get object(): Record<string, string|number|boolean>; public abstract get object(): Record<string, string|number|boolean>;
public abstract set object(obj: Record<string, string|number|boolean>); public abstract set object(obj: Record<string, string|number|boolean>);
public get (key: string): string|number|boolean { public get (key: string): string|number|boolean {
return data[key]; return this.data[key];
} }
public set (key: string, value: string|number|boolean): void { public set (key: string, value: string|number|boolean): void {

View File

@ -16,7 +16,7 @@ export abstract class DatabaseModel {
this.data.id = val; this.data.id = val;
} }
public get object (): Record<string, string|number, boolean> { public get object (): Record<string, string|number|boolean> {
return this.data; return this.data;
} }