Type checking JavaScript

Just add // @ts-check to the top of any JavaScript file to enable TypeScript’s type checking in it.

This can help you catch common programming mistakes and also enables some useful quick fixes.

More info