using-generics

Community

Reusable, type-safe code with TypeScript generics

Authordjankies
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Teaches generic constraints, avoiding any in generic defaults, and mapped types in TypeScript.

Core Features & Use Cases

  • Generic parameters & constraints: ensure type-safe API boundaries.
  • Defaults & mapped types: provide sensible defaults while preserving safety.
  • Use Case: create a reusable identity function that preserves input type.

Quick Start

Create a generic function with constraints and a mapped type example.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: using-generics
Download link: https://github.com/djankies/claude-configs/archive/main.zip#using-generics

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.