diff options
author | Diego Magdaleno <diegomagdaleno@protonmail.com> | 2021-05-23 13:35:07 -0500 |
---|---|---|
committer | Diego Magdaleno <diegomagdaleno@protonmail.com> | 2021-05-23 13:35:07 -0500 |
commit | e4e21b4fbc93a566ddb9025c590ee4ec62c197ef (patch) | |
tree | 7f8aac9eb01be654cde07623166db27ae3952dbf /src/util | |
parent | Models: Update avatar to reflect the new NULL changes (diff) | |
download | server-e4e21b4fbc93a566ddb9025c590ee4ec62c197ef.tar.xz |
Config: Don't cast to unknow and rather give a gernic type
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Config.ts | 4 |
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 { |