From e4e21b4fbc93a566ddb9025c590ee4ec62c197ef Mon Sep 17 00:00:00 2001 From: Diego Magdaleno Date: Sun, 23 May 2021 13:35:07 -0500 Subject: [PATCH] Config: Don't cast to unknow and rather give a gernic type --- src/util/Config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/Config.ts b/src/util/Config.ts index 7d69fb45..588f8dea 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts @@ -89,8 +89,8 @@ class Config = Record> extends St return this._get(key, defaultValue); } - public getAll(): unknown { - return this.store as unknown; + public getAll(): T { + return this.store; } private _has(key: Key | string): boolean {