tsdjs/tsd
Check TypeScript type definitions observed · 2026-08-28
Health v2 · maintenance only
42/100
- Activity 35
- Release rhythm 17
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 166.5
- age_days: 2927
- days_rel: 393
- days_push: 393
- n_releases_24m: 3
Adoption not part of the score
2557 stars · 68 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
tsd is a CLI tool and library for testing TypeScript type definitions (.d.ts files). It statically analyzes .test-d.ts files containing assertion constructs like expectType and expectError to verify that type definitions behave as intended.
Use cases
- test my package's .d.ts type definitions
- assert that a function returns an exact TypeScript type
- verify that invalid code produces a type error
- catch regressions in typings before publishing to npm
- run type-level tests in CI
When to choose
- you publish an npm package with TypeScript typings and want to test them
- you need strict type assertions like expectType or expectError
- you want type tests integrated into CI without executing code
When to avoid
- you need runtime unit tests rather than type-level checks
- you want type testing built into the TypeScript compiler itself (consider vitest expectTypeOf or tstyche)
- your project does not ship type definitions
Facets
cli-tool · maturity active
testing type-system cli developer-tools developer-tools testing programming-languages cli cross-platform typescript type-definitions type-testing dts-files static-analysis nodejs
2 sources
- readme: https://github.com/tsdjs/tsd · fetched 2026-08-28 · 71c4ad4483dc
- registry_npm: https://registry.npmjs.org/tsd · fetched 2026-08-29 · 55d018a2a67a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| tsdjs/tsd | main | 42 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem