Type Parameters

  • K = unknown

  • V = unknown

Constructors

  • Type Parameters

    • K = unknown

    • V = unknown

    Parameters

    • key: K
    • Optional value: null | V

    Returns Pair<K, V>

Properties

[NODE_TYPE]: symbol
key: K

Always Node or null when parsed, but can be set to anything.

srcToken?: CollectionItem

The CST token that was composed into this pair.

value: null | V

Always Node or null when parsed, but can be set to anything.

Methods

  • Parameters

    Returns Pair<K, V>

  • Parameters

    • Optional _: unknown
    • Optional ctx: ToJSContext

    Returns MapLike

  • Parameters

    • Optional ctx: StringifyContext
    • Optional onComment: (() => void)
        • (): void
        • Returns void

    • Optional onChompKeep: (() => void)
        • (): void
        • Returns void

    Returns string

Generated using TypeDoc