From a94c7416247d4e19213d178bca0537071af48e2d Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Mon, 4 May 2020 20:13:41 +0200 Subject: [PATCH] fix --- lib/ControlModel.ts | 4 ++++ lib/DatabaseModel.ts | 4 ++++ 2 files changed, 8 insertions(+) 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;