HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

flow — A static type checker for JavaScript. More information: <https://flow.org/en/docs/cli/>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandstaticcheckerjavascriptclitypeforflow

Problem

How to use the flow command: A static type checker for JavaScript. More information: <https://flow.org/en/docs/cli/>.

Solution

flow — A static type checker for JavaScript. More information: <https://flow.org/en/docs/cli/>.

Run a flow check:
flow


Check which files are being checked by flow:
flow ls


Run a type coverage check on all files in a directory:
flow batch-coverage --show-all --strip-root {{path/to/directory}}


Display line-by-line type coverage stats:
flow coverage --color {{path/to/file.jsx}}

Code Snippets

Run a flow check

flow

Check which files are being checked by flow

flow ls

Run a type coverage check on all files in a directory

flow batch-coverage --show-all --strip-root {{path/to/directory}}

Display line-by-line type coverage stats

flow coverage --color {{path/to/file.jsx}}

Context

tldr-pages: common/flow

Revisions (0)

No revisions yet.