@pdubroy
There are other missing methods and type in the generated index.d.ts file.
/**
* Returns contextual information (line and column number, etc.) about a
* specific character in a string.
*/
getLineAndColumn(): LineAndColumnInfo;
and
export interface LineAndColumnInfo {
offset: number;
lineNumber: number;
colNum: number;
line: string;
prevLine: string;
nextLine: string;
toString(...ranges: number[][]): string;
}