typescript-advanced

v2026.09.24

Implement advanced TypeScript types, reusable type utilities, and compile-time contracts with generics, conditional/mapped types, and template literals. Excludes basic syntax, JavaScript, and runtime validation.

GitHub
安装命令
npx skhub add pedronauck/typescript-advanced
Markdown
SKILL.md

TypeScript Advanced Types

Use this skill when generic inference, conditional/mapped types, template literals, or a reusable type utility is the actual problem. Ordinary typed API, form, and state work uses its domain guidance unless advanced type behavior needs attention.

Concern being changedReference
Generics, conditional/mapped/template-literal and utility typesreferences/core-concepts.md
Reusable emitters, builders, clients, deep utilities, or discriminated modelsreferences/advanced-patterns.md
infer, narrowing, assertion functions, and type-contract testsreferences/type-inference.md
Compiler configuration, type complexity, and maintainabilityreferences/best-practices.md

Prefer the simplest type that expresses the contract. Use unknown and real narrowing at untrusted boundaries; preserve discriminants and readonly intent. Let inference handle local values and follow repository conventions for public annotations, interface, and type.

Use the existing tsconfig; reference configurations are examples, not instructions to change it. Add compile-time tests only when type behavior is a product/library contract, using its owning suite. Avoid a new type framework or elaborate generic abstraction for a single ordinary call site. Run the repository's affected typecheck gate.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

未指定

源路径

skills/mine/typescript-advanced

默认分支

main

最新提交

0422940

Tree SHA

d2996c2