YamlPosition

import { YamlPosition } from "jsr:@ende/yaml";

interface

interface YamlPosition

Position information for error reporting.

line and column are 1-indexed; offset is the 0-indexed character offset into the source string.

Properties

line

readonly line: number

Line number (1-indexed).

column

readonly column: number

Column number (1-indexed).

offset

readonly offset: number

Character offset in the input (0-indexed).

Source