@alifd/dts-generator
v1.0.3
Published
A tool to generate *.d.ts by specified api schema.
Downloads
102
Readme
@alifd/dts-generator
一个依据描述 react 组件 api 信息文件生成 *.d.ts 文件的工具。
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);