mirror of https://github.com/msgbyte/tailchat
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.
17 lines
442 B
TypeScript
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);
|
|
});
|