Update dependencies, except YAML for now since it has formatting changes
This commit is contained in:
parent
c18384129f
commit
307fc3470c
4 changed files with 1335 additions and 1034 deletions
|
@ -39,7 +39,7 @@ export abstract class YamlFile<T = object> {
|
|||
|
||||
load(): void {
|
||||
if (fs.existsSync(this.path)) {
|
||||
this.data = yaml.safeLoad(fs.readFileSync(this.path, "utf8"));
|
||||
this.data = yaml.safeLoad(fs.readFileSync(this.path, "utf8")) as T;
|
||||
} else {
|
||||
this.data = this.defaultData;
|
||||
}
|
||||
|
|
Reference in a new issue