UNPKG

sucrase

Version:

Super-fast alternative to Babel for when you can target modern JS runtimes

17 lines (16 loc) 431 B
export declare type Pos = { start: number; }; export declare class Position { line: number; column: number; constructor(line: number, col: number); } export declare class SourceLocation { start: Position; end: Position; filename: string; identifierName: string | null; constructor(start: Position, end?: Position); } export declare function getLineInfo(input: string, offset: number): Position;