devsite/node_modules/posthtml-parser/dist/location-tracker.d.ts

18 lines
384 B
TypeScript
Raw Permalink Normal View History

2024-07-08 01:49:38 +00:00
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 };