---
title: "tsd"
description: "A tool for testing TypeScript declaration files."
pagination: false
---

{/* Generated from content/. Edit the catalog, not this page. */}

<PurposeNote title="Good for">Protecting a library's exported types with compile-time assertions.</PurposeNote>

## What it does

A tool for testing TypeScript declaration files.

## When it fits

Protecting a library's exported types with compile-time assertions.

## Other options in this category

<div data-pagefind-ignore>

- [Effect](/typescript/effect) — Structuring asynchronous work, errors, dependencies, and resource lifecycles.
- [Total TypeScript TSConfig](/typescript/total-typescript-tsconfig) — Starting projects with consistent compiler settings.
- [True Myth](/typescript/true-myth) — Representing absence and failure explicitly in TypeScript application logic.
- [ts-expect](/typescript/ts-expect) — Checking that public types behave as intended during compilation.
- [ts-pattern](/typescript/ts-pattern) — Expressing structured branching with exhaustive matching over TypeScript values.

</div>

## Source

[Project source for tsd ↗](https://github.com/SamVerschueren/tsd)

Editorial overview reviewed on October 24, 2026. Follow the source for current setup, compatibility, and licensing.

[Make application logic type-safe →](/tasks/make-application-logic-type-safe)

[All typescript &amp; typed logic options →](/typescript)
