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

    Class Scalar<T>

    Type Parameters

    • T = unknown

    Hierarchy (View Summary)

    Index

    Constructors

    • Type Parameters

      • T = unknown

      Parameters

      • value: T

      Returns Scalar<T>

    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?: string

    An optional anchor on this node. Used by alias nodes.

    comment?: string

    A comment on or immediately after this

    commentBefore?: string

    A comment before this

    format?: string

    By default (undefined), numbers use decimal notation. The YAML 1.2 core schema only supports 'HEX' and 'OCT'. The YAML 1.1 schema also supports 'BIN' and 'TIME'

    minFractionDigits?: number

    If value is a number, use this value when stringifying this node.

    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

    Set during parsing to the source string value

    spaceBefore?: boolean

    A blank line before this node and its commentBefore

    srcToken?: Token

    The CST token that was composed into this node.

    tag?: string

    A fully qualified tag, if required

    type?: Type

    The scalar style used for the node's string representation

    value: T

    Methods

    • A plain JavaScript representation of this node.

      Parameters

      Returns any

    • A plain JS representation of this node

      Parameters

      Returns any

    • Returns string