skills/victorgarciaesgi/regle/regle-typescript

regle-typescript

SKILL.md

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
Weekly Installs
26
GitHub Stars
416
First Seen
Feb 9, 2026
Installed on
gemini-cli26
amp26
github-copilot26
codex26
kimi-cli26
opencode26