Introduced schema base implementation

This commit is contained in:
Core 2022-04-19 19:06:00 +01:00
parent 24a5d1111f
commit 9db0a451d6
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -165,11 +165,17 @@ export class Store {
} }
}, },
} }
private schema: ElectronStore.Schema<any> = {
"general.discord_rpc": {
type: 'object'
},
}
constructor() { constructor() {
Store.cfg = new ElectronStore({ Store.cfg = new ElectronStore({
name: 'cider-config', name: 'cider-config',
defaults: this.defaults, defaults: this.defaults,
schema: this.schema,
migrations: this.migrations, migrations: this.migrations,
clearInvalidConfig: true clearInvalidConfig: true
}); });