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 types for TS 4.7 #163

Merged
merged 1 commit into from
Mar 30, 2022
Merged

Conversation

weswigham
Copy link
Contributor

Conf requires T have a constraint of Record<string, any>. In previous versions of TS, this error went undetected.

`Conf` requires `T` have a constraint of `Record<string, any>`. In previous versions of TS, this error went undetected.
@sindresorhus sindresorhus merged commit eb1da20 into sindresorhus:main Mar 30, 2022
sandersn added a commit to sandersn/electron-store that referenced this pull request Apr 20, 2022
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
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.

2 participants