feat: add delete method to config value handler
This commit is contained in:
parent
b7ae4c54c1
commit
755a34ba3e
@ -71,6 +71,9 @@ export class Config {
|
||||
get: <T>(fallback: T): T => {
|
||||
return (this.config[key] as T) ?? fallback;
|
||||
},
|
||||
del: () => {
|
||||
delete this.config[key];
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user