Skip to content

Generate TypeScript definition files from Svelte JavaScript files

License

Notifications You must be signed in to change notification settings

Kiho/rollup-plugin-svelte-dts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generate TypeScript definition files from Svelte JavaScript files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published