0.0.3 • Published 9 months ago

dts-fusion v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

DTS Fusion

DTS Bundler Plugin for Vite

Generates d.ts files of all ts files and bundles them all into a single d.ts, including existing d.ts files.

Installation

yarn add -D dts-fusion

Usage

const { DtsPlugin } = require('dts-fusion')
export default defineConfig({
	plugins: [
		DtsPlugin({
			inDir: 'src/ts',
			outDir: 'dist',
			outFileName: 'my-types', // Optional, defaults to `types`
		}),
	],
})

Documentation

inDir - The directory to search for type declaration files.

outDir - The directory to output the bundled type declaration file to.

outFileName - The name of the bundled type declaration file. Defaults to types.

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago