Using the Flow Type Checker
WebStorm provides basic support of Flow static type checker that brings type annotations to JavaScript. This support involves recognition and syntax highlighting of Flow structures on all operating systems. If you are using Unix or OS X, you can also run Flow in the command-line mode.
For information on installing Flow, see Getting Started with Flow.
To have WebStorm recognize Flow structures, provide correct syntax highlighting, and avoid false-positive error highlighting, change the JavaScript language level to Flow:
- Open the Settings / Preferences Dialog by choosing for Windows and Linux or for OS X, and click JavaScript under Languages&Frameworks.
- On the JavaScript page that opens, choose Flow from the JavaScript Language Version drop-down list.
See Also
Reference:
Language and Framework-Specific Guidelines:
Last modified: 11 July 2016