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.
23 lines
528 B
TypeScript
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')],
|
|
});
|