import ts from 'typescript'; /** * 创建 TS 服务,并且根据 .ts & .tsx 文件编译出 d.ts * Typescript 文档: * https://github.com/microsoft/TypeScript/wiki/Using-the-Compiler-API#incremental-build-support-using-the-language-services * @param options * @param cwd * @returns */ declare function getTSService(options: ts.CompilerOptions, cwd: string): ts.LanguageService; export { getTSService };