| 1 | --- |
| 2 | name: flow |
| 3 | description: Use when you need to run Flow type checking, or when seeing Flow type errors in React code. |
| 4 | --- |
| 5 | |
| 6 | # Flow Type Checking |
| 7 | |
| 8 | Arguments: |
| 9 | - $ARGUMENTS: Renderer to check (default: dom-node) |
| 10 | |
| 11 | ## Renderers |
| 12 | |
| 13 | | Renderer | When to Use | |
| 14 | |----------|-------------| |
| 15 | | `dom-node` | Default, recommended for most changes | |
| 16 | | `dom-browser` | Browser-specific DOM code | |
| 17 | | `native` | React Native | |
| 18 | | `fabric` | React Native Fabric | |
| 19 | |
| 20 | ## Instructions |
| 21 | |
| 22 | 1. Run `yarn flow $ARGUMENTS` (use `dom-node` if no argument) |
| 23 | 2. Report type errors with file locations |
| 24 | 3. For comprehensive checking (slow), use `yarn flow-ci` |
| 25 | |
| 26 | ## Common Mistakes |
| 27 | |
| 28 | - **Running without a renderer** - Always specify or use default `dom-node` |
| 29 | - **Ignoring suppressions** - Check if `$FlowFixMe` comments are masking real issues |
| 30 | - **Missing type imports** - Ensure types are imported from the correct package |