Theoretically such tools could make the code more robust.. But in practice - it is an additional time, and the profit is vague... But here are several links: * [flow](https://flowtype.org/) (analyzer from facebook team) * how to use flow using JSDoc annotations: https://github.com/Kegsay/flow-jsdoc