mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
500 B
Plaintext
26 lines
500 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|