advanced-typescript-patterns
Installation
SKILL.md
Advanced TypeScript Patterns for TMNL
Overview
TMNL uses sophisticated TypeScript patterns that extend beyond Effect Schema. This skill covers:
- Conditional Types — Type-level branching with
infer - Mapped Types — Object transformation with
[K in keyof] - Branded Types — Nominal typing for type safety
- Generic Constraints — Cascading bounds and defaults
- Pattern Matching —
Extract<>for discriminated unions - Utility Composition — Partial, Readonly, Record, Pick, Omit
- Template Literals — String-level type constraints
- Type Decomposition — Extract types from complex generics
Scope Distinction: Effect Schema patterns (Schema.TaggedStruct, Schema.brand) are covered in effect-schema-mastery. This skill covers pure TypeScript patterns.