When I run the closure compiler to type-check my code, it shows me the type coverage (but only when there's an error), e.g.:
1 error(s), 0 warning(s), 90.8% typed
Is there a flag to enforce that all code be typed?
(Addendum: Is there a way to see type coverage when there are no errors?)
This doesn't appear to be well documented, but reportUnknownTypes
is listed here:
https://github.com/google/closure-compiler/wiki/Flags-and-Options
Enabling this diagnostic groups should report places where the "unknown" type needed to be used.