diff --git a/lib/ControlModel.ts b/lib/ControlModel.ts index 0fe7efc..6810a6c 100644 --- a/lib/ControlModel.ts +++ b/lib/ControlModel.ts @@ -24,6 +24,10 @@ export abstract class ControlModel extends Assignable { } } + public get_data (): Record { + return super.get_data () as Record; + } + public get (key: string): string|number|boolean { return this.data[key] as string|number|boolean; } diff --git a/lib/DatabaseModel.ts b/lib/DatabaseModel.ts index ddf0ec2..3cdcd5d 100644 --- a/lib/DatabaseModel.ts +++ b/lib/DatabaseModel.ts @@ -36,6 +36,10 @@ export abstract class DatabaseModel extends Assignable { this.data[key] = value; } + public get_data (): Record { + return super.get_data () as Record; + } + public abstract async read(): Promise; public abstract async write(): Promise; public abstract async delete(): Promise;