flow
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFlow Type Checking
Flow类型检查
Arguments:
- $ARGUMENTS: Renderer to check (default: dom-node)
参数:
- $ARGUMENTS:要检查的渲染器(默认值:dom-node)
Renderers
渲染器
| Renderer | When to Use |
|---|---|
| Default, recommended for most changes |
| Browser-specific DOM code |
| React Native |
| React Native Fabric |
| 渲染器 | 使用场景 |
|---|---|
| 默认选项,推荐用于大多数变更 |
| 浏览器专属DOM代码 |
| React Native |
| React Native Fabric |
Instructions
操作步骤
- Run (use
yarn flow $ARGUMENTSif no argument)dom-node - Report type errors with file locations
- For comprehensive checking (slow), use
yarn flow-ci
- 运行(如果没有参数则使用
yarn flow $ARGUMENTS)dom-node - 报告包含文件位置的类型错误
- 如需全面检查(速度较慢),请使用
yarn flow-ci
Common Mistakes
常见错误
- Running without a renderer - Always specify or use default
dom-node - Ignoring suppressions - Check if comments are masking real issues
$FlowFixMe - Missing type imports - Ensure types are imported from the correct package
- 未指定渲染器运行 - 请始终指定渲染器或使用默认的
dom-node - 忽略抑制标记 - 检查注释是否掩盖了真实问题
$FlowFixMe - 缺少类型导入 - 确保从正确的包中导入类型