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.
25 lines
551 B
TypeScript
25 lines
551 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({
|
|
main: '__tailchat__/common/index',
|
|
name: '@capital/commmon',
|
|
out: 'tailchat.d.ts',
|
|
prefix: '__tailchat__',
|
|
baseDir: path.resolve(__dirname, '../src'),
|
|
rootDir: path.resolve(__dirname, '../src'),
|
|
files: [path.resolve(__dirname, '../src/plugin/common/index.ts')],
|
|
});
|