plantain-00 / type-coverage

A CLI tool to check type coverage for typescript code
MIT License
1.26k stars 44 forks source link

Split strict flag to particular #62

Closed darky closed 3 years ago

darky commented 4 years ago

Now for all cases exists only one strict flag. But very hard to satisfy all strictness at once. Would be good to split strict flag to multiple like strict-as, strict-nested, strict-optional strict flag preserve old behaviour, that all flags plug on.

plantain-00 commented 4 years ago

This tool is not like tsc or eslint, they just fail if one case fails, but this tool is progressive, you don't have to be --at-least 100. if some cases fail, maybe --at-least 99.99 can still make CI happy, you can still improve your code and the coverage number to 100 if you have time later. I think splitting strict flag is too complex, they are doing same things, checking unsafe code.

plantain-00 commented 3 years ago

v2.16.0 should support it.