Build a type-level test suite for TypeScript libraries using expect-type, tsd, and @ts-expect-error to catch type regressions before they reach consumers.
## CONTEXT Every TypeScript library author has shipped a type regression: a generic that used to infer the right type now infers `unknown`, an overload that used to accept a call site now rejects it, or a conditional type that used to produce a clean hover output now produces a 200-line monster. These regressions…
Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with Pro