regle-typescript
TypeScript integration for Regle — type-safe validated output (`InferSafeOutput`, `$validate`), inferring state from rules (`InferInput`), typing computed rules (`inferRules`, `RegleComputedRules`), and typing component props (`InferRegleRoot`, `RegleRoot`, `RegleFieldStatus`, `SuperCompatibleRegleRoot`). Use when typing rules schemas, passing `r$` between components, or extracting validated data types.
How do I install this agent skill?
npx skills add https://github.com/victorgarciaesgi/regle --skill regle-typescriptIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides technical documentation and TypeScript type definitions for the Regle validation library. It contains only informational content and code examples, with no executable scripts or security risks.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
4/4 files flagged
What does this agent skill do?
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 |
Related skills
- regle — form setup with
useRegle, validation properties. - regle-rules —
inferRulesis used when typing computed rule objects. - regle-advanced — scoped validation and patterns where typed props matter.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/victorgarciaesgi/regle/regle-typescript">View regle-typescript on skillZs</a>