regle-typescript
17
总安装量
3
周安装量
#20115
全站排名
安装命令
npx skills add https://github.com/victorgarciaesgi/regle --skill regle-typescript
Agent 安装分布
amp
3
opencode
3
kimi-cli
3
codex
3
github-copilot
3
gemini-cli
3
Skill 文档
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.
Key Exports
| Export | Package | Purpose |
|---|---|---|
InferInput |
@regle/core |
Infer state type from rules |
InferSafeOutput |
@regle/core |
Infer validated output type from r$ |
inferRules |
@regle/core |
Preserve autocompletion in computed rules |
RegleComputedRules |
@regle/core |
Type helper for explicit rule typing |
InferRegleRoot |
@regle/core |
Extract r$ type from a composable |
RegleFieldStatus |
@regle/core |
Type for a single field status prop |
References
| Topic | Description | Reference |
|---|---|---|
| Type Safe Output | $validate return types, InferSafeOutput |
typescript-type-safe-output |
| Typing Rules | inferRules, RegleComputedRules, nested properties |
typescript-typing-rules |
| Typing Props | InferRegleRoot, RegleFieldStatus, typing component props |
typescript-typing-props |