11 lines
438 B
TypeScript
11 lines
438 B
TypeScript
import * as ts from 'typescript/lib/tsserverlibrary';
|
|
import { CustomDiagnostic } from './core/checker';
|
|
/**
|
|
* 将自定义诊断转换为 TypeScript 诊断
|
|
*/
|
|
export declare function convertToTsDiagnostics(customDiagnostics: CustomDiagnostic[]): ts.Diagnostic[];
|
|
/**
|
|
* 将自定义诊断转换为代码修复
|
|
*/
|
|
export declare function convertToCodeFixes(customDiagnostics: CustomDiagnostic[], fileName: string): ts.CodeFixAction[];
|