summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-23 20:37:07 +0200
committerGitHub <noreply@github.com>2021-05-23 20:37:07 +0200
commitdf2c65e82d8acb89449eec6d771c47e216126aa0 (patch)
treeb02b11864a7fd811473cf43ac4abe45836b23dd4 /src
parent1.3.0 (diff)
parentConfig: Don't cast to unknow and rather give a gernic type (diff)
downloadserver-df2c65e82d8acb89449eec6d771c47e216126aa0.tar.xz
Merge pull request #8 from DiegoMagdaleno/master
Config: Don't cast to unknow and rather give a gernic type
Diffstat (limited to 'src')
-rw-r--r--src/util/Config.ts4
1 files 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<T extends Record<string, any> = Record<string, unknown>> extends St return this._get(key, defaultValue); } - public getAll(): unknown { - return this.store as unknown; + public getAll(): T { + return this.store; } private _has<Key extends keyof T>(key: Key | string): boolean {