---
title: "TypeScript Advanced Types"
type: skill
id: "wshobson-agents/languages/typescript-advanced-types"
category: "Engineering"
publisher: "Seth Hobson"
license: "MIT"
source: "https://github.com/wshobson/agents/tree/7e2fb55"
canonical: "https://labs.pho.chat/en/skills/wshobson-agents/languages/typescript-advanced-types"
open_in_pho: "https://pho.chat/customize?item=wshobson-agents%2Flanguages%2Ftypescript-advanced-types&utm_source=labs&utm_medium=skill-page&utm_campaign=skills-library"
---

# TypeScript Advanced Types

Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when implementing complex type logic, creating reusable type utilities, or ensuring compile-time type safety in TypeScript projects.

Source: Seth Hobson (MIT), copied at a pinned commit. Free to use. Part of the Phở Skills library (https://labs.pho.chat/en/skills).
Skill set: JavaScript, TypeScript, Go and Rust (https://labs.pho.chat/en/skills/wshobson-agents/languages.md).

## What it covers
- When to Use This Skill
- Core Concepts
  - 1. Generics
  - 2. Conditional Types
  - 3. Mapped Types
  - 4. Template Literal Types
  - 5. Utility Types
- Detailed worked examples and patterns
- Best Practices
- Type Testing
- Common Pitfalls
- Performance Considerations

## Other skills in this set
- [JavaScript Testing Patterns](https://labs.pho.chat/en/skills/wshobson-agents/languages/javascript-testing-patterns.md): Implement comprehensive testing strategies using Jest, Vitest, and Testing Library for unit tests, integration tests, and end-to-end testing with mocking, fixtures, and test-driven development. Use…
- [Modern JavaScript Patterns](https://labs.pho.chat/en/skills/wshobson-agents/languages/modern-javascript-patterns.md): Master ES6+ features including async/await, destructuring, spread operators, arrow functions, promises, modules, iterators, generators, and functional programming patterns for writing clean…
- [Go Concurrency Patterns](https://labs.pho.chat/en/skills/wshobson-agents/languages/go-concurrency-patterns.md): Master Go concurrency with goroutines, channels, sync primitives, and context. Use when building concurrent Go applications, implementing worker pools, or debugging race conditions.
- [Memory Safety Patterns](https://labs.pho.chat/en/skills/wshobson-agents/languages/memory-safety-patterns.md): Implement memory-safe programming with RAII, ownership, smart pointers, and resource management across Rust, C++, and C. Use when writing safe systems code, managing resources, or preventing memory…
- [Rust Async Patterns](https://labs.pho.chat/en/skills/wshobson-agents/languages/rust-async-patterns.md): Master Rust async programming with Tokio, async traits, error handling, and concurrent patterns. Use when building async Rust applications, implementing concurrent systems, or debugging async code.

## Use it
- In Phở: open https://pho.chat/customize?item=wshobson-agents%2Flanguages%2Ftypescript-advanced-types&utm_source=labs&utm_medium=skill-page&utm_campaign=skills-library and press Try, or add it so Phở loads it whenever a request matches. Phở works with your own API key (OpenAI, Anthropic, Google and others).
- Full instructions (original SKILL.md, unchanged): https://labs.pho.chat/skills/raw/wshobson-agents/languages/skills/typescript-advanced-types/SKILL.md
- Original files: https://github.com/wshobson/agents/tree/7e2fb55 (MIT).
- Full machine-readable index: https://labs.pho.chat/skills.json
