template-literal-types
CommunityModel string patterns with type-level precision.
Authorluyi985
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Type-safe modeling of strings and DSL parsing using TypeScript template literal types to ensure correct string shapes and transformations at compile time.
Core Features & Use Cases
- Model structured string patterns (IDs, paths, URLs) with type-level templates.
- Parse and validate DSL-like strings using conditional types and infer.
- Transform and map string shapes with mapped types for safer APIs.
Quick Start
Define a template literal type that matches a pattern, such as data-${string}, and use it to constrain related types.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: template-literal-types Download link: https://github.com/luyi985/lyi-bash/archive/main.zip#template-literal-types Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.