ts-lambda-api - v2.5.2
    Preparing search index...

    Interface Parsed

    interface Parsed {
        "[NODE_TYPE]": symbol;
        addToJSMap?: (ctx: ToJSContext, map: MapLike, value: unknown) => void;
        anchor?: never;
        comment?: string;
        commentBefore?: string;
        range: Range;
        source: string;
        spaceBefore?: boolean;
        srcToken?: FlowScalar & { type: "alias" };
        tag?: string;
        clone(): NodeBase;
        resolve(
            doc: Document,
            ctx?: ToJSContext,
        ): Scalar<unknown> | YAMLMap<unknown, unknown> | YAMLSeq<unknown>;
        toJS(
            doc: Document<Node<unknown>, boolean>,
            __namedParameters?: ToJSOptions,
        ): any;
        toJSON(_arg?: unknown, ctx?: ToJSContext): unknown;
        toString(
            ctx?: StringifyContext,
            _onComment?: () => void,
            _onChompKeep?: () => void,
        ): string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    "[NODE_TYPE]": symbol
    addToJSMap?: (ctx: ToJSContext, map: MapLike, value: unknown) => void

    Customize the way that a key-value pair is resolved. Used for YAML 1.1 !!merge << handling.

    anchor?: never
    comment?: string

    A comment on or immediately after this

    commentBefore?: string

    A comment before this

    range: Range

    The [start, value-end, node-end] character offsets for the part of the source parsed into this node (undefined if not parsed). The value-end and node-end positions are themselves not included in their respective ranges.

    source: string
    spaceBefore?: boolean

    A blank line before this node and its commentBefore

    srcToken?: FlowScalar & { type: "alias" }

    The CST token that was composed into this node.

    tag?: string

    A fully qualified tag, if required

    Methods

    • Create a copy of this node.

      Returns NodeBase

    • A plain JavaScript representation of this node.

      Parameters

      Returns any

    • A plain JS representation of this node

      Parameters

      Returns unknown

    • Parameters

      • Optionalctx: StringifyContext
      • Optional_onComment: () => void
      • Optional_onChompKeep: () => void

      Returns string