flow

A static type checker for JavaScript.

TLDR

Run a flow check

$ flow
copy

Check which files are being checked by flow

$ flow ls
copy

Run a type coverage check on all files in a directory

$ flow batch-coverage --show-all --strip-root [path/to/directory]
copy

Display line-by-line type coverage stats

$ flow coverage --color [path/to/file.jsx]
copy

Copied to clipboard
Earn up to $40 for learning about crypto currencies