From 249316858fd5c793df4970113687828281d12b04 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Sat, 2 May 2020 20:04:14 +0200 Subject: [PATCH] fix --- lib/DatabaseModel.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/DatabaseModel.ts b/lib/DatabaseModel.ts index a933f6c..15093d8 100644 --- a/lib/DatabaseModel.ts +++ b/lib/DatabaseModel.ts @@ -9,19 +9,19 @@ export abstract class DatabaseModel { protected data: Record = {}; public get id (): number { - return this.data.id; + return this.data.id as number; } public set id (val: number) { this.data.id = val; } - public constructor (id) { + public constructor (id: number) { this.id = id; } public abstract get(key: string): string|number|boolean; - public abstract set(key: string, value: string|number|boolean); + public abstract set(key: string, value: string|number|boolean): void; public abstract async read(): Promise; public abstract async write(): Promise;