流量
- 作者仓库星标 245,422
- 作者仓库 react
- 领域
- 通用
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @facebook · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- macOS · Linux · Windows
- 运行环境要求
- Node.js
- 检测到的文件与系统行为
-
- 只读
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# Flow Type Checking
Arguments:
- $ARGUMENTS: Renderer to check (default: dom-node)
## Renderers
| Renderer | When to Use |
|----------|-------------|
| `dom-node` | Default, recommended for most changes |
| `dom-browser` | Browser-specific DOM code |
| `native` | React Native |
| `fabric` | React Native Fabric |
## Instructions
1. Run `yarn flow $ARGUMENTS` (use `dom-node` if no argument)
2. Report type errors with file locations
3. For comprehensive checking (slow), use `yarn flow-ci`
## Common Mistakes
- **Running without a renderer** - Always specify or use default `dom-node`
- **Ignoring suppressions** - Check if `$FlowFixMe` comments are masking real issues
- **Missing type imports** - Ensure types are imported from the correct package
章节与文件索引
按说明文件中的顺序排列。
渲染器
使用说明
常见错误
文件/命令 -> dom-node · dom-browser · native · fabric · yarn flow $ARGUMENTS · yarn flow-ci · $FlowFixMe
内容校验值 -> cfbfd5b5fc1a
当前原文的自动摘译,尚未人工审校。
渲染器
渲染器 · 何时使用
dom-node· 默认,建议大多数更改dom-browser· 浏览器特定的 DOM 代码native· React Nativefabric· React Native Fabric使用说明
运行
yarn flow $ARGUMENTS(如果没有参数,则使用dom-node)报告文件位置的类型错误要进行全面检查(慢),请使用yarn flow-ci常见错误
不使用渲染器运行 - 始终指定或使用默认值
dom-node忽略抑制 - 检查$FlowFixMe注释是否掩盖了实际问题 缺少类型导入 - 确保从正确的包中导入类型