Constructors
constructor
- new Pair<K, V>(key, value?): Pair<K, V>
Parameters
- key: K
Optional
value: null | V
Properties
Readonly
[NODE_TYPE]
[NODE_TYPE]: symbol
key
Optional
srcToken
value
Methods
clone
- clone(schema?): Pair<K, V>
toJSON
- toJSON(_?, ctx?): MapLike
Parameters
Optional
_: unknownOptional
ctx: ToJSContext
Returns MapLike
toString
- toString(ctx?, onComment?, onChompKeep?): string
Parameters
Optional
ctx: StringifyContextOptional
onComment: (() => void)Optional
onChompKeep: (() => void)
Returns string
Always Node or null when parsed, but can be set to anything.