react-gnome
Version:
## Getting Started
23 lines (22 loc) • 640 B
TypeScript
export type SourceMap = {
version: number;
sources: string[];
sourcesContent: string[];
mappings: string;
names: string[];
};
export type FileLocation = {
file: string | undefined;
line: number;
column: number;
symbolName?: string | undefined;
};
export declare class SourceMapReader {
private map;
private mapFilepath;
private converter;
constructor(map: SourceMap, mapFilepath: string);
protected getFile(file?: number): string | undefined;
protected getLineN(text: string, n: number): string;
getOriginalPosition(outLine: number, outColumn: number): FileLocation | null;
}