Vladimir Kuznetsov retweetledi

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 (foo)
🚩 Non-null assertions (foo!)
🚩 Use of plain Object type (Object or {})
And it provides a detailed report of all the spots you should consider changing to improve type safety.
Related: Use typescript-coverage-report to get a nice visual output like this:

English





















