Newer
Older
vue-indexer / node_modules / lines-and-columns / build / index.d.ts
@eugene-sukhodolskiy eugene-sukhodolskiy on 24 Sep 376 bytes v1.0
export declare type SourceLocation = {
    line: number;
    column: number;
};
export declare class LinesAndColumns {
    private string;
    private offsets;
    constructor(string: string);
    locationForIndex(index: number): SourceLocation | null;
    indexForLocation(location: SourceLocation): number | null;
    private lengthOfLine;
}
export default LinesAndColumns;