1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/flow.md
Managor 8e09a08059
common*: refresh old pages part 3 (#16257)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-04-25 21:19:03 +03:00

407 B

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}}