Sign in
Explore
Skills · SkillEveryday codingReviewed

typescript-advanced-types

TypeScript's advanced type system: generics, conditional types, mapped types and utility types.

Kind
Skill
Works with
Claude Code, Codex
Languages
TypeScript / JavaScript
Source
wshobson/agents @ 0874a27b17a2
Path
plugins/javascript-typescript/skills/typescript-advanced-types/SKILL.md
Jobs
Implementation

Credit

Made by
wshobson
Original
github.com/wshobson/agents/blob/0874a27b17a22e2b7c2e2bcd72576…
License
MIT

Listed by Skill Manifest; not made by us.

InstallInstall it from a plugin marketplace.
/plugin install javascript-typescript@claude-code-workflows
Install factsScanned 3 Nov 2026
Adds
  • .claude/skills/typescript-advanced-types/ (the skill folder)
  • 1 file(s) the skill refers to
  • 1 other file in the folder: references/details.md
Runs scripts
None found
Uses the network
None found
Needs secrets
None found
Calls other skills
  • /users
Source revision
0874a27b17a2
Licence
MIT
Last activity
24 Nov 2026
Source changed after the scan
Yes
  • Last push 24 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

# TypeScript Advanced Types

Comprehensive guidance for mastering TypeScript's advanced type system including generics, conditional types, mapped types, template literal types, and utility types for building robust, type-safe applications.

## When to Use This Skill

- Building type-safe libraries or frameworks
- Creating reusable generic components
- Implementing complex type inference logic
- Designing type-safe API clients
- Building form validation systems
- Creating strongly-typed configuration objects
- Implementing type-safe state management
- Migrating JavaScript codebases to TypeScript

## Core Concepts

### 1. Generics

**Purpose:** Create reusable, type-flexible components while maintaining type safety.

**Basic Generic Function:**

```typescript
function identity<T>(value: T): T {
  return value;
}

const num = identity<number>(42); // Type: number
const str = identity<string>("hello"); // Type: string
const auto = identity(true); // Type inferred: boolean
```

**Generic Constraints:**

```typescript
interface HasLength {
  length: number;
}

function logLength<T extends HasLength>(item: T): T {
  console.log(item.length);
  return item;
}
…