devsite/node_modules/posthtml-parser/dist/location-tracker.d.ts
2024-07-07 18:49:38 -07:00

18 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 };