Typescript Advanced Patterns

Advanced TypeScript — type-level programming, library/DSL APIs, declaration merging, modern language features at depth (decorators, using, const T, NoInfer, variance), and feature implementation patterns built on advanced types. Trigger on tasks involving recursive conditional types, infer patterns, mapped-type key remapping, variadic tuples, fluent builders with phantom state, schema-first inference (Zod/Valibot), end-to-end-typed API clients, finite state machines, module augmentation, and library-publishing concerns. Trigger even when the user does not say "advanced" — if the work involves type-level algorithms, library-author API design, or going beyond surface-level uses of TS 5.x features, this is the skill. Assumes the reader has absorbed the `typescript-refactor` skill — this one extends those patterns at depth, never restates them.

pproenca dd28a5f 45 files · 171.4 KB Updated

File contents

pproenca/dot-skills/tree/main/skills/.experimental/typescript-advanced-patterns commit dd28a5fd83

Frequently asked questions

npx skillmds add pproenca/typescript-advanced-patterns