# dts-resolver

> Resolves TypeScript declaration files for dependencies.

Latest version **3.0.0** (published 2026-05-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install dts-resolver
pnpm add dts-resolver
yarn add dts-resolver
bun add dts-resolver
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2026-05-02 |
| First published | 2025-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^22.18.0 \|\| >=24.0.0 |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 11 |
| Author | Kevin Deng <sxzz@sxzz.moe> |
| Maintainers | sxzz |

## Links

- npm: https://www.npmjs.com/package/dts-resolver
- Repository: https://github.com/sxzz/dts-resolver
- Homepage: https://github.com/sxzz/dts-resolver#readme
- Issues: https://github.com/sxzz/dts-resolver/issues
- Funding: https://github.com/sponsors/sxzz
- npm.io page: https://npm.io/package/dts-resolver

## Recent versions

- 3.0.0 (latest) — 2026-05-02
- 2.1.3 — 2025-11-09
- 2.1.2 — 2025-08-24
- 2.1.1 — 2025-06-04
- 2.1.0 — 2025-05-31
- 2.0.1 — 2025-05-12
- 2.0.0 — 2025-05-12
- 1.2.0 — 2025-05-09
- 1.1.2 — 2025-05-08
- 1.1.1 — 2025-05-03
- 1.1.0 — 2025-05-03
- 1.0.1 — 2025-04-23
- 1.0.0 — 2025-04-18
- 0.1.1 — 2025-04-11
- 0.1.0 — 2025-04-10

## README

# dts-resolver

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Unit Test][unit-test-src]][unit-test-href]

Resolves TypeScript declaration files for dependencies, powered by [oxc-resolver](https://oxc.rs/docs/guide/usage/resolver.html).

## Install

```bash
npm i dts-resolver
```

## Usage

```ts
import { createResolver } from 'dts-resolver'

const resolver = createResolver({
  // optional
  cwd: process.cwd(),
})

resolver('fast-glob') // .../node_modules/fast-glob/out/index.d.ts
```

## Sponsors

<p align="center">
  <a href="https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg">
    <img src='https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg'/>
  </a>
</p>

## License

[MIT](./LICENSE) License © 2025-PRESENT [Kevin Deng](https://github.com/sxzz)

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/dts-resolver.svg
[npm-version-href]: https://npmjs.com/package/dts-resolver
[npm-downloads-src]: https://img.shields.io/npm/dm/dts-resolver
[npm-downloads-href]: https://www.npmcharts.com/compare/dts-resolver?interval=30
[unit-test-src]: https://github.com/sxzz/dts-resolver/actions/workflows/unit-test.yml/badge.svg
[unit-test-href]: https://github.com/sxzz/dts-resolver/actions/workflows/unit-test.yml

---
_Source: https://npm.io/package/dts-resolver · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
