1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-22 02:31:36 +02:00

Merge pull request #8 from DiegoMagdaleno/master

Config: Don't cast to unknow and rather give a gernic type
This commit is contained in:
Flam3rboy 2021-05-23 20:37:07 +02:00 committed by GitHub
commit df2c65e82d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {