docgen-to-dts

1.0.0 • Public • Published

docgen-to-dts

Generates d.ts files based on docken description. We use https://github.com/reactjs/react-docgen to generate docs.

=> The description ./examples/Select.description.json => Result ./examples/Select.d.ts

How to use it

npx docgen-to-dts gen examples/Select.description.json

Or

import { gen } from 'docgen-to-dts`;
import path from 'path';

const filePath = path.resolve(process.cwd(), 'xxx.description.js');
gen(filePath);

To run:

node index.js examples/Select.description.json

Readme

Keywords

none

Package Sidebar

Install

npm i docgen-to-dts

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

13.7 kB

Total Files

6

Last publish

Collaborators

  • wegorich