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

Fix TypeScript typings #23

Merged
merged 6 commits into from
Jan 19, 2021
Merged

Conversation

Richienb
Copy link
Contributor

@Richienb Richienb commented Jan 19, 2021

In #22, I accidentally broke the TypeScript typings in a bizarre way so that expectAssignable was wide enough to test the code pre-PR but also hid the newly introduced error.

Signed-off-by: Richie Bendall <richiebendall@gmail.com>
@sindresorhus
Copy link
Owner

Can you add some type tests?

@Richienb
Copy link
Contributor Author

The type tests now use the much stricter expectType instead of expectAssignable. This will allow us to prevent the same issue from passing unit tests in the future.

@Richienb Richienb marked this pull request as ready for review January 19, 2021 12:54
@sindresorhus sindresorhus merged commit ce1624d into sindresorhus:master Jan 19, 2021
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