plantain-00 / type-coverage

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

Shouldn't flag `as unknown` #54

Closed danielnixon closed 4 years ago

danielnixon commented 4 years ago

Version(if relevant): 2.8.1

Environment(if relevant):

Code(if relevant):

const foo = someAnyValue as unknown;

Expected:

as unknown should be allowed (even in strict mode). Consider an any (or some other bad type) from a third party library that you want to treat (safely) as unknown.

Actual:

as unknown is flagged as untyped (when in strict mode).

plantain-00 commented 4 years ago

fixed in v2.8.2

danielnixon commented 4 years ago

LGTM, thanks @plantain-00