codn_ts
Version:
智能代码分析工具 - 支持语义搜索、调用链分析和代码结构可视化,对大模型/AI agent 友好
15 lines (14 loc) • 382 B
TypeScript
export interface Diagnostic {
file: string;
line: number;
column: number;
severity: "error" | "warning" | "info" | "hint";
message: string;
code?: string | number;
source?: string;
}
export declare function collectDiagnostics({ projectRoot, file, waitMs, }?: {
projectRoot?: string;
file?: string;
waitMs?: number;
}): Promise<Diagnostic[]>;