mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-13 14:12:41 +01: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:
commit
df2c65e82d
@ -89,8 +89,8 @@ class Config<T extends Record<string, any> = Record<string, unknown>> extends St
|
|||||||
return this._get(key, defaultValue);
|
return this._get(key, defaultValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getAll(): unknown {
|
public getAll(): T {
|
||||||
return this.store as unknown;
|
return this.store;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _has<Key extends keyof T>(key: Key | string): boolean {
|
private _has<Key extends keyof T>(key: Key | string): boolean {
|
||||||
|
Loading…
Reference in New Issue
Block a user