generics-as-functions
CommunityTreat generics as functions for type-level code.
Authorluyi985
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Generics are powerful but can become hard to reason about when used without a clear mental model. This Skill helps you treat generics as functions between types to design safer, more reusable type-level constructs in TypeScript.
Core Features & Use Cases
- Define constrained generic types and functions that transform or constrain inputs.
- Build reusable type utilities and document them with TSDoc for strong developer experience.
- Apply the generics-as-functions approach to both simple and complex type-level patterns in real-world projects.
Quick Start
Define a constrained generic type and demonstrate its usage with an example like picking a subset of properties from a type.
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: generics-as-functions Download link: https://github.com/luyi985/lyi-bash/archive/main.zip#generics-as-functions 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.