plantain-00 / type-coverage

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

`--ignore-catch` for `Promise.catch` #119

Closed Kaciras closed 1 year ago

Kaciras commented 1 year ago

Promise.catch could be considered as another form of try-catch, should we ignore it with --ignore-catch?

plantain-00 commented 1 year ago

https://github.com/plantain-00/type-coverage#ignore-catch

You can add arbitrary type annotation forPromise.catch, so it's unnecessary.