Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change file name, it is marked readonly #264

Open
crystalfp opened this issue Jul 31, 2023 · 0 comments
Open

Cannot change file name, it is marked readonly #264

crystalfp opened this issue Jul 31, 2023 · 0 comments

Comments

@crystalfp
Copy link

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:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant