Back to Trending
RepositoryTypeScript
timocov

timocov/dts-bundle-generator

A tool to generate a single bundle of dts with types tree-shaking

876stars
51forks
13issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: definition

#1 Repository of the week

1
TINIX TRENDING·Topic: dts

#1 Repository of the week

1
TINIX TRENDING·Topic: typescript-definitions

#1 Repository of the week

📦 Single .d.ts bundle from many .ts files, tree-shaking unused types

Tree-shake dead types out of your bundle.

timocov builds dts-bundle-generator. Tool merges many .ts files into one .d.ts. Tree-shaking strips types entry file never exports. Result: clean, minimal definition file for publishing.

✨ Highlights

  • Tree-shaking: strips types not exported from entry file.
  • Single bundle: merges multiple .ts files into one .d.ts.
  • External inlining: inline typings from specified node_modules packages.
  • UMD support: emit export as namespace when --umd-module-name set.
  • Config file: load options from a config file via --config.
  • No banner: remove generator comment from output with --no-banner.
  • Sort output: order declarations alphabetically with --sort.
  • Skip validation: bypass generated d.ts checks with --no-check.

💡 Why it matters

Most d.ts generators dump every type into output. dts-bundle-generator tree-shakes, keeps only exports reachable from entry. Output stays small, clean. Fits publishing libraries, internal packages, any project needing single .d.ts file.

Supports tsconfig, external inlining, UMD names, config files. Works in CI pipelines. Run via CLI or integrate as library. Saves manual trimming, avoids dead types in published definitions.


#TypeScript #DTS #TreeShaking #OpenSource #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
DefinitelyTyped/DefinitelyTyped

The repository for high quality TypeScript type definitions.

51.5k
Nov 27, 2026
RepositoryTypeScript
typed-mxgraph/typed-mxgraph

mxGraph typescript declarations

66
Jan 21, 2025
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryTypeScript
microsoft/vscode

Visual Studio Code

195.9k
Nov 30, 2026
RepositoryTypeScript
angular/angular

Deliver web apps with confidence 🚀

101.7k
Dec 1, 2026
RepositoryTypeScript
ant-design/ant-design

An enterprise-class UI design language and React UI library

100.5k
Dec 2, 2026
RepositoryTypeScript
heygen-com/hyperframes

Open-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.

94.6k
Dec 2, 2026
RepositoryTypeScript
mermaid-js/mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown

91.3k
Nov 29, 2026
RepositoryTypeScript
nestjs/nest

A progressive TypeScript framework for Node.js backends: from a small API in one file to efficient, scalable, enterprise-grade systems 🚀

77.2k
Nov 30, 2026