@backbrace/dts-generator

Create typescript definition files from jsdoc style comments.

Usage no npm install needed!

<script type="module">
  import backbraceDtsGenerator from 'https://cdn.skypack.dev/@backbrace/dts-generator';
</script>

README

@backbrace/dts-generator

Create typescript definition files from jsdoc style comments (based on tsd-jsdoc)

Install

Using npm:

npm install --save-dev @backbrace/dts-generator

Usage

To use this module, simply specify it as the template for your normal jsdoc generation.

For example, from the command-line you can do:

gt; jsdoc -t node_modules/@backbrace/dts-generator -r .

Or add this to your JSON configuration:

{
    "opts": {
        "template": "./node_modules/@backbrace/dts-generator"
    }
}