regle-typescript
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRegle TypeScript
Regle TypeScript
Regle provides first-class TypeScript support with full type inference. This skill covers type-safe validation output, typing rules schemas, and typing component props.
Regle提供一流的TypeScript支持,具备完整的类型推断能力。本技能涵盖类型安全的验证输出、规则模式类型定义以及组件属性类型定义。
Key Exports
核心导出项
| Export | Package | Purpose |
|---|---|---|
| | Infer state type from rules |
| | Infer validated output type from |
| | Preserve autocompletion in computed rules |
| | Type helper for explicit rule typing |
| | Extract |
| | Type for a single field status prop |
| 导出项 | 包 | 用途 |
|---|---|---|
| | 从规则中推断状态类型 |
| | 从 |
| | 在计算规则中保留自动补全功能 |
| | 用于显式规则类型定义的类型助手 |
| | 从组合式函数中提取 |
| | 单个字段状态属性的类型 |
References
参考资料
| Topic | Description | Reference |
|---|---|---|
| Type Safe Output | | typescript-type-safe-output |
| Typing Rules | | typescript-typing-rules |
| Typing Props | | typescript-typing-props |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 类型安全输出 | | typescript-type-safe-output |
| 规则类型定义 | | typescript-typing-rules |
| 属性类型定义 | | typescript-typing-props |