mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-09-27 22:45:25 +00:00
18 lines
384 B
TypeScript
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 };
|