@alifd/dts-generator

A tool to generate *.d.ts by specified api schema.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
21Apr 21, 2021Sep 3, 2018Minified + gzip package size for @alifd/dts-generator in KB

Readme

@alifd/dts-generator

一个依据描述 react 组件 api 信息文件生成 *.d.ts 文件的工具。

npm package

Install

npm install @alifd/dts-generator

Usage

const dtsGen = require('@alifd/dts-generator');
dtsGen(apiSchema).then(result => {
  console.log(result.message);
});

or

const dtsGen = require('@alifd/dts-generator');
const result = dtsGen(result, true);

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.