I figured this out but will post the issue and show the solution in reply
const Store = require('electron-store');
const schema = {
foo: {
type: 'number',
default: 14
},
bar: {
type: 'object',
properties: {
a: {
type: 'number',
default: 5
}
}
}
}
const store = new Store({schema: schema});
console.log(store.get('foo'));
//=> 14
console.log(store.get('bar.a'));
//=> Cannot get property 'a' of undefined (I've paraphrased the error message)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too