UNPKG

ts-lit-plugin

Version:

Typescript plugin that adds type checking and code completion to lit-html

19 lines 689 B
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