Skip to main content

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.

소스 정보

저장소
victorgarciaesgi/regle
최근 소스 활동
2026년 6월 11일 10:09
감지된 SKILL.md 언어
영어
스타
506
포크
22

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
4 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
regle-typescript
description
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.
license
MIT
compatibility
Requires Vue 3.3+ and TypeScript 5.1+. Works with any agent supporting the Agent Skills spec.
metadata
{"author":"Victor Garcia","version":"1.27.0","source":"https://reglejs.dev"}
# 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](references/typescript-type-safe-output.md) | | Typing Rules | `inferRules`, `RegleComputedRules`, nested properties | [typescript-typing-rules](references/typescript-typing-rules.md) | | Typing Props | `InferRegleRoot`, `RegleFieldStatus`, typing component props | [typescript-typing-props](references/typescript-typing-props.md) | ## Related skills - **regle** — form setup with `useRegle`, validation properties. - **regle-rules** — `inferRules` is used when typing computed rule objects. - **regle-advanced** — scoped validation and patterns where typed props matter.
GitHub에서 보기