fix
This commit is contained in:
parent
174739ad17
commit
161d4573c7
@ -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 {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user