lit-analyzer
Version:
CLI that type checks bindings in lit-html templates
19 lines • 1.08 kB
TypeScript
import { ComponentDeclaration, ComponentDefinition } from "web-component-analyzer";
import { LitAnalyzerRuleId } from "./lit-analyzer-config.js";
import { LitAnalyzerContext } from "./lit-analyzer-context.js";
import { HtmlDocument } from "./parse/document/text-document/html-document/html-document.js";
import { RuleDiagnostic } from "./types/rule/rule-diagnostic.js";
import { RuleModule } from "./types/rule/rule-module.js";
export interface ReportedRuleDiagnostic {
source: LitAnalyzerRuleId;
diagnostic: RuleDiagnostic;
}
export declare class RuleCollection {
private rules;
push(...rule: RuleModule[]): void;
private invokeRules;
getDiagnosticsFromDeclaration(declaration: ComponentDeclaration, baseContext: LitAnalyzerContext): ReportedRuleDiagnostic[];
getDiagnosticsFromDefinition(definition: ComponentDefinition, baseContext: LitAnalyzerContext): ReportedRuleDiagnostic[];
getDiagnosticsFromDocument(htmlDocument: HtmlDocument, baseContext: LitAnalyzerContext): ReportedRuleDiagnostic[];
}
//# sourceMappingURL=rule-collection.d.ts.map