From f2cfbe4f37ecf0d85cbefa0652c1e5e6b4006ea6 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Sat, 2 May 2020 21:01:08 +0200 Subject: [PATCH] property for reading entire data stack --- lib/DatabaseModel.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/DatabaseModel.ts b/lib/DatabaseModel.ts index 15093d8..3383ee4 100644 --- a/lib/DatabaseModel.ts +++ b/lib/DatabaseModel.ts @@ -16,6 +16,10 @@ export abstract class DatabaseModel { this.data.id = val; } + public get data (): Record { + return this.data; + } + public constructor (id: number) { this.id = id; }