blob: 2100be403cd01060fd9f001ee3ea296197e54e84 [file] [log] [blame]
import { LitAnalyzerConfig } from "lit-analyzer";
import ts, { Diagnostic } from "typescript";
interface DiagnosticPlugin {
readonly name: string;
getDiagnostics(sourceFile: ts.SourceFile): Readonly<ts.Diagnostic>[];
}
/**
* Implements bazel's DiagnosticPlugin interface, so that we can run
* the ts-lit-plugin checks as part of bazel compilation.
*/
export declare class Plugin implements DiagnosticPlugin {
readonly name = "lit";
private readonly context;
private readonly analyzer;
constructor(program: ts.Program, config: LitAnalyzerConfig);
getDiagnostics(sourceFile: ts.SourceFile): Diagnostic[];
}
export {};
//# sourceMappingURL=bazel-plugin.d.ts.map