epiphany/node_modules/posthtml-parser/dist/location-tracker.d.ts
2023-12-09 22:19:03 -08:00

17 lines
384 B
TypeScript

declare type SourceLocation = {
start: Position;
end: Position;
};
declare type Position = {
line: number;
column: number;
};
declare class LocationTracker {
private readonly source;
private lastPosition;
private lastIndex;
constructor(source: string);
getPosition(index: number): Position;
}
export { LocationTracker, Position, SourceLocation };