UNPKG

lit-analyzer

Version:

CLI that type checks bindings in lit-html templates

12 lines 627 B
import { Expression } from "typescript"; import { DocumentOffset, DocumentRange, Range, SourceFilePosition, SourceFileRange } from "../../../types/range.js"; export interface VirtualDocument { fileName: string; location: SourceFileRange; text: string; getPartsAtDocumentRange(range?: DocumentRange): (Expression | string)[]; sfPositionToDocumentOffset(position: SourceFilePosition): DocumentOffset; documentOffsetToSFPosition(offset: DocumentOffset): SourceFilePosition; } export declare function textPartsToRanges(parts: (Expression | string)[]): Range[]; //# sourceMappingURL=virtual-document.d.ts.map