1.0.7 • Published 6 years ago
rollup-plugin-svelte-dts v1.0.7
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