summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-23 13:35:07 -0500
committerDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-23 13:35:07 -0500
commite4e21b4fbc93a566ddb9025c590ee4ec62c197ef (patch)
tree7f8aac9eb01be654cde07623166db27ae3952dbf /src/util
parentModels: Update avatar to reflect the new NULL changes (diff)
downloadserver-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.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 {