流量

其他 社区

技能解读

当前原文的自动摘译,尚未人工审校。

渲染器

渲染器 · 何时使用 dom-node · 默认,建议大多数更改 dom-browser · 浏览器特定的 DOM 代码 native · React Native fabric · React Native Fabric

使用说明

运行yarn flow $ARGUMENTS(如果没有参数,则使用dom-node)报告文件位置的类型错误要进行全面检查(慢),请使用yarn flow-ci

常见错误

不使用渲染器运行 - 始终指定或使用默认值 dom-node 忽略抑制 - 检查 $FlowFixMe 注释是否掩盖了实际问题 缺少类型导入 - 确保从正确的包中导入类型

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
通用
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
88 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@facebook · 未声明许可证
上下文用量评级
低消耗
接入复杂程度
即装即用
是否需要外部接口密钥
不需要
兼容的系统
macOS · Linux · Windows
运行环境要求
Node.js
检测到的文件与系统行为
  • 只读
网络行为
仅限本地
安装命令数
无(仅作为资料)

需要注意: 未声明工具权限范围;实际权限由运行环境决定。

作者说明文件(原文) SKILL.md

# 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

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。