/svelte-dts-gen

Svelte TypedDefinition Generator

Primary LanguageJavaScriptMIT LicenseMIT

Svelte dts generator

Create the Typescript declaration files for your Svelte library and project.

npm version License: MIT Node.js CI

Requirement

  • Nodejs ^18.0.0

Installation

npm i svelte-dts-gen

How it works

The svelte-dts-gen interpret the properties, events and slot properties in the svelte code, using typescript and svelte compiler to generate the TypeScript Declaration files. svelte-dts-gen will generate the declaration based on typescript type, jsdoc, or javascript default type.

License

svelte-dts-gen is 100% free and open-source, under the MIT license.

Big Thanks To

Thanks to these awesome companies for their support of Open Source developers ❤

GitHub NPM

Inspired by svelte-dts.