typescript-advanced-types

Installation
SKILL.md

TypeScript Advanced Types

Master TypeScript's advanced type system for building robust, type-safe applications.

Generics

// Basic generic function
function identity<T>(value: T): T {
  return value;
}

// Generic with constraint
interface HasLength { length: number; }

function logLength<T extends HasLength>(item: T): T {
  console.log(item.length);
  return item;
}
Installs
14
GitHub Stars
22
First Seen
Jan 26, 2026
typescript-advanced-types — thapaliyabikendra/ai-artifacts