effective-typescript
effective-typescript copied to clipboard
A new way to test types
A new way to test types
Effective TypeScript: A new way to test types
https://effectivetypescript.com/2022/05/28/eslint-plugin-expect-type/
Why not simply add a type annotation?
@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.