UNPKG

@glint/core

Version:

A CLI for performing typechecking on Glimmer templates

12 lines (11 loc) 444 B
/** * The LSP refers to line/character combinations as positions, * while TS uses numeric offsets instead. */ export declare type Position = { line: number; character: number; }; export declare function positionToOffset(contents: string, { line, character }: Position): number; export declare function offsetToPosition(contents: string, position: number): Position; export declare function computeLineStarts(text: string): number[];