skills/regle-typescript/SKILL.md
TypeScript support for type-safe Regle form validation, rules, and component props.
npx skillsauth add victorgarciaesgi/regle regle-typescriptInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Regle provides first-class TypeScript support with full type inference. This skill covers type-safe validation output, typing rules schemas, and typing component props.
| 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 |
| 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 |
tools
Core skills for using Regle form validation in Vue.js. Provides setup, validation rules, and usage patterns.
databases
Advanced patterns for Regle form validation, including arrays, async, server errors, global config, variants, scoped validation, and schema integration.
development
Vue 3 Composition API, script setup macros, reactivity system, and built-in components. Use when writing Vue SFCs, defineProps/defineEmits/defineModel, watchers, or using Transition/Teleport/Suspense/KeepAlive.
development
Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.