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/web/scripts/plugin-declaration.ts

23 lines
528 B
TypeScript

import dtsgen from 'dts-generator';
import path from 'path';
/**
* :WIP:
* TODO: tailchat.d.ts的路径尚未完善
* 等完善后再追踪改文件的变更
*/
declare module 'dts-generator' {
interface DtsGeneratorOptions {
prefix?: string;
}
}
dtsgen({
name: '', // 这个是为了跳过类型问题,其实移除该项也是可以的
out: 'tailchat.d.ts',
prefix: '@capital',
baseDir: path.resolve(__dirname, '../src/plugin'),
files: [path.resolve(__dirname, '../src/plugin/common/index.ts')],
});