A Bun plugin to automatically generate TypeScript declaration files (.d.ts) during build.
-
Updated
Oct 28, 2026 - TypeScript
A Bun plugin to automatically generate TypeScript declaration files (.d.ts) during build.
Generate complete TypeScript type exports from your runtime public API. Keep package declarations aligned with runtime exports and simplify public API maintenance.
Have you ever tried to write a declaration/definition file in TypeScript and felt lost? Here I give you a basic introduction on what needs to be done to write a declaration file. Enjoy!
Test your TypeScript types
Typescript: simple demo with custom declaration file, included with reference path
To associate your repository with the declaration-files topic, visit your repo's landing page and select "manage topics."