interface SourceToken {
    indent: number;
    offset: number;
    source: string;
    type:
        | "anchor"
        | "space"
        | "comment"
        | "newline"
        | "tag"
        | "byte-order-mark"
        | "doc-mode"
        | "doc-start"
        | "directive-line"
        | "seq-item-ind"
        | "explicit-key-ind"
        | "map-value-ind"
        | "flow-map-start"
        | "flow-map-end"
        | "flow-seq-start"
        | "flow-seq-end"
        | "flow-error-end"
        | "comma"
        | "block-scalar-header";
}

Properties

indent: number
offset: number
source: string
type:
    | "anchor"
    | "space"
    | "comment"
    | "newline"
    | "tag"
    | "byte-order-mark"
    | "doc-mode"
    | "doc-start"
    | "directive-line"
    | "seq-item-ind"
    | "explicit-key-ind"
    | "map-value-ind"
    | "flow-map-start"
    | "flow-map-end"
    | "flow-seq-start"
    | "flow-seq-end"
    | "flow-error-end"
    | "comma"
    | "block-scalar-header"