Closed darky closed 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]
[ts] Catch clause variable cannot have a type annotation. [1196]
v1.9.0 support this now: https://github.com/plantain-00/type-coverage#ingore-line
Cool! Thanks! But unfortunately this regression appeared in 1.9.0 https://github.com/plantain-00/type-coverage/issues/14
For example:
And type-coverage not scan this line of code. Otherwise, I can't hide it from from type-coverage. For example:
Get error:
[ts] Catch clause variable cannot have a type annotation. [1196]