You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/client/web/scripts/generate-plugin-declaration...

17 lines
442 B
TypeScript

import { generateFunctionDeclare } from 'tailchat-plugin-declaration-generator';
import path from 'path';
/**
* 这个工具主要是用来自动扫描入口文件导出内容
*
* 以减少缺失的内容获取
*/
generateFunctionDeclare({
entryPath: path.resolve(__dirname, '../src/plugin/common/index.ts'),
}).then((code) => {
console.log('预计输出代码如下:');
console.log('-----------------');
console.log(code);
});