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