PyCharm 2016.2 Help

Using the Flow Type Checker

PyCharm 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 PyCharm recognize Flow structures, provide correct syntax highlighting, and avoid false-positive error highlighting, change the JavaScript language level to Flow:

  1. Open the Settings / Preferences Dialog by pressing Ctrl+Alt+S or by choosing File | Settings for Windows and Linux or PyCharm | Preferences for OS X, and click JavaScript under Languages&Frameworks.
  2. On the JavaScript page that opens, choose Flow from the JavaScript Language Version drop-down list.

See Also

Last modified: 29 August 2016