Thanks to visit codestin.com
Credit goes to github.com

Skip to content

getLineAndColumn is missing from the TypeScript types #410

@millergarym

Description

@millergarym

@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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions