Problem: You want to know how much of your TypeScript code is type safe


Problem: You want to know how much of your TypeScript code is type safe.

Solution: type-coverage

This CLI tool reports the percentage of your code that’s type safe.

It reports usage of:
🚩 any
🚩 as assertions (foo as string)
🚩 type assertions (<string>foo)
🚩 Non-null…

Oops, forgot to include the links

type-coverage: https://github.com/plantain-00/type-coverage

typescript-coverage-report: https://github.com/alexcanessa/typescript-coverage-report

View original on X