typescript-advanced-patterns - Advanced TypeScript Patterns for Library Authors
Type-level programming, library APIs, and modern TS 5.x features implementation patterns
Tags
Updated: 2026-06-15Capabilities
Typical Inputs
Typical Outputs
What this skill does
- enforce builder call order
- build typed event emitters
- type object path access
- infer route parameters
- derive static types
- encode query shape
- export API surface
- choose overloads
- use recursive conditionals
- bypass step limit
- constrain infer extraction
- remap mapped keys
- use variadic tuples
- build string algorithms
- control distribution
- test types
- match template literals
- emulate higher-kinded types
- use stage 3 decorators
- compose using resources
Inputs
- runtime schemas
- path patterns
- event maps
- configuration
- environment variables
- library source code
Outputs
- type definitions
- builder APIs
- event emitter types
- API client types
- form field types
- module declarations
Requirements
- TypeScript 5.x
- typescript-refactor skill
