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

Update Options type parameter constraint for TS 4.7 #223

Merged

Conversation

sandersn
Copy link
Contributor

Options's type parameter is passed to conf's Options type, which
requires is constrained to Record<string, any>. Typescript 4.7 will
properly check this constraint where it didn't before.

Fixes #222

Depends on fixes: sindresorhus/type-fest#388 and sindresorhus/conf#163

Options's type parameter is passed to conf's Options type, which
requires is constrained to `Record<string, any>`. Typescript 4.7 will
properly check this constraint where it didn't before.

Fixes sindresorhus#222

Depends on fixes: sindresorhus/type-fest#388 and sindresorhus/conf#163
@sindresorhus sindresorhus merged commit e3fae8e into sindresorhus:main Apr 21, 2022
@sandersn sandersn deleted the update-Option-constraint-for-ts-4.7 branch April 21, 2022 15:25
@sandersn
Copy link
Contributor Author

sandersn commented Jun 9, 2022

@sindresorhus Are you able to ship this fix? We delayed the improved check from Typescript 4.7 to Typescript 4.8, so for now it's still only broken for people on typescript@next.

@sindresorhus
Copy link
Owner

Ah sorry. I did intend to publish it, but seems I forgot.

https://github.com/sindresorhus/electron-store/releases/tag/v8.0.2

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

Successfully merging this pull request may close these issues.

electron-store needs to update for Typescript 4.7
2 participants