Skip to main content
Languages/Skill

TypeScript

Advanced TypeScript — generics, utility types, discriminated unions, type narrowing, strict configuration, and declaration files.

How it works

Goes beyond basic typing — generates discriminated unions, template literal types, conditional types, mapped types, and generic constraints. Knows when to use type vs interface, generates type guards and assertion functions, and implements builder pattern with full type safety.

Example prompts

Create a type-safe event emitter with autocomplete for event names

Build a generic API client that infers response types from endpoints

Add strict TypeScript to my JS project with migration strategy

Real-world example

A team migrating a large untyped JS codebase created shared type definitions for their API contract and generic utility types that eliminated repetitive declarations across 200+ files — catching 47 runtime bugs during migration.

Try the TypeScript skill

Available on all plans. 71 skills total. Start free.

Get Started Free