Open crystalfp opened 1 year ago
First attempt at electron-store. I need to have two different files, so I tried to setup the name in the constructor this way (as explained in the documentation:
electron-store
const options: Store.Options<Record<string, unknown>> = {}; options.name = "preferences";
But Typescript complains: Cannot assign to 'name' because it is a read-only property. What should I do? Thanks! mario
Cannot assign to 'name' because it is a read-only property.
First attempt at
electron-store
. I need to have two different files, so I tried to setup the name in the constructor this way (as explained in the documentation:But Typescript complains:
Cannot assign to 'name' because it is a read-only property.
What should I do? Thanks! mario