plantain-00 / type-coverage

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

@type-coverage-ignore #13

Closed darky closed 5 years ago

darky commented 5 years ago

For example:

try {
  // some code...

// @type-coverage-ignore
} catch (e) {}

And type-coverage not scan this line of code. Otherwise, I can't hide it from from type-coverage. For example:

try {
  // some code...
} catch (e: Error) {}

Get error: [ts] Catch clause variable cannot have a type annotation. [1196]

plantain-00 commented 5 years ago

v1.9.0 support this now: https://github.com/plantain-00/type-coverage#ingore-line

darky commented 5 years ago

Cool! Thanks! But unfortunately this regression appeared in 1.9.0 https://github.com/plantain-00/type-coverage/issues/14