TypeScript
Testing TypeScript Types: tsd, expect-type, and Type-Level Tests
TypeScript types are part of your API surface — a change to a generic utility or function signature can break callers without touching any runtime behavior. Type-level tests catch these regressions. Tools like tsd, expect-type, and @vitest/expect-type let you assert that expressions have specific types, that certain type combinations are