typescript-advanced-types
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTypeScript Advanced Types
TypeScript高级类型
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.
本指南全面介绍如何掌握TypeScript的高级类型系统,包括泛型、条件类型、映射类型、模板字面量类型和工具类型,助力构建健壮、类型安全的应用程序。
Use this skill when
适用场景
- 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
- 构建类型安全的库或框架
- 创建可复用的泛型组件
- 实现复杂的类型推断逻辑
- 设计类型安全的API客户端
- 构建表单验证系统
- 创建强类型配置对象
- 实现类型安全的状态管理
- 将JavaScript代码库迁移至TypeScript
Do not use this skill when
不适用场景
- The task is unrelated to typescript advanced types
- You need a different domain or tool outside this scope
- 任务与TypeScript高级类型无关
- 需要使用本范围之外的其他领域或工具
Instructions
操作说明
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open .
resources/implementation-playbook.md
- 明确目标、约束条件和所需输入。
- 应用相关最佳实践并验证结果。
- 提供可执行的步骤和验证方法。
- 如果需要详细示例,请打开。
resources/implementation-playbook.md
Resources
资源
- for detailed patterns and examples.
resources/implementation-playbook.md
- :包含详细的模式和示例。
resources/implementation-playbook.md