fix
This commit is contained in:
		@@ -8,8 +8,17 @@
 | 
			
		||||
export abstract class ControlModel {
 | 
			
		||||
  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 object (): Record<string, string|number|boolean> {
 | 
			
		||||
    return this.data;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public set object (obj: Record<string, string|number|boolean>) {
 | 
			
		||||
    this.data = obj;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public constructor (obj: Record<string, string|number|boolean>) {
 | 
			
		||||
    this.object = obj;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public get (key: string): string|number|boolean {
 | 
			
		||||
    return this.data[key];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user