rollup-plugin-svelte-dts Svelte Themes

Rollup Plugin Svelte Dts

Generate TypeScript definition files from Svelte JavaScript files

rollup-plugin-svelte-dts

Generate TypeScript definition files from Svelte JavaScript files

Installation

npm install --save-dev rollup-plugin-svelte-dts

Usage

Import rollup-plugin-svelte-dts in your rollup.config.js. Place it in your array of Rollup plugins before the main svelte plugin. Place svelte type definition files from examples/typings to your application source folder. Currently it will generate *.html.d.ts files only if same name of js file is present in same folder.

How to run example

npm run build:ts
npm run build:example
npm start

Credits

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes