Explores essential techniques for testing TypeScript types to ensure predictable type inferences in SDKs and APIs. Covers multiple approaches from basic compiler checks using tsc and @ts-expect-error to dedicated tools like dtslint, tsd, and Vitest's expectTypeOf helper. Emphasizes the importance of type testing for library
Table of contents
ContentsWhy test types?Testing types with tscTesting types with dtslintTesting types with tsdTesting types with Vitest1 Comment
Sort: