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

A new way to test types #21

Open
utterances-bot opened this issue Jun 7, 2022 · 2 comments
Open

A new way to test types #21

utterances-bot opened this issue Jun 7, 2022 · 2 comments

Comments

@utterances-bot
Copy link

A new way to test types

Effective TypeScript: A new way to test types

https://effectivetypescript.com/2022/05/28/eslint-plugin-expect-type/

Copy link

louwers commented Jun 7, 2022

Why not simply add a type annotation?

Copy link
Owner

danvk commented Aug 25, 2022

@louwers Adding a type annotation will test assignability, not type equality or the display of the type (which is also part of the usability of the library, see The Display of Types). Assignability is particularly problematic when any types enter the mix.

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

3 participants