fixes
This commit is contained in:
parent
702f7383cb
commit
174739ad17
@ -6,8 +6,18 @@
|
||||
*/
|
||||
|
||||
export abstract class ControlModel {
|
||||
public abstract get object(): Record<string, unknown>;
|
||||
public abstract set object(obj: Record<string, unknown>);
|
||||
protected data: 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 get (key: string): string|number|boolean {
|
||||
return data[key];
|
||||
}
|
||||
|
||||
public set (key: string, value: string|number|boolean): void {
|
||||
this.data[key] = value;
|
||||
}
|
||||
|
||||
public update (): void {
|
||||
this.verify ();
|
||||
|
@ -16,7 +16,7 @@ export abstract class DatabaseModel {
|
||||
this.data.id = val;
|
||||
}
|
||||
|
||||
public get data (): Record<string, string|number, boolean> {
|
||||
public get object (): Record<string, string|number, boolean> {
|
||||
return this.data;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user