An open API service indexing awesome lists of open source software.

https://github.com/si3nloong/svelte-dts-gen

Svelte TypedDefinition Generator
https://github.com/si3nloong/svelte-dts-gen

dts jsdoc svelte-dts svelte3 typescript

Last synced: 6 months ago
JSON representation

Svelte TypedDefinition Generator

Awesome Lists containing this project

README

          

# Svelte dts generator

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

[![npm version](https://badge.fury.io/js/svelte-dts-gen.svg)](https://www.npmjs.com/package/svelte-dts-gen)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/si3nloong/svelte-dts-gen/blob/master/LICENSE)
[![Node.js CI](https://github.com/si3nloong/svelte-dts-gen/workflows/Matrix%20Testing/badge.svg)](https://github.com/si3nloong/svelte-dts-gen/actions/workflows/test.yml)

## Requirement

- Nodejs ^18.0.0

## Installation

```console
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](https://github.com/si3nloong/svelte-dts-gen) is 100% free and open-source, under the [MIT license](https://github.com/si3nloong/svelte-dts-gen/blob/main/LICENSE).

## Big Thanks To

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

[![GitHub](https://jstools.dev/img/badges/github.svg)](https://github.com/open-source)
[![NPM](https://jstools.dev/img/badges/npm.svg)](https://www.npmjs.com/)

Inspired by [svelte-dts](https://github.com/si3nloong/svelte-dts-gen).