Skip to content

YamlPair

Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Pair.d.ts:10

The yaml node, tag and visitor model, re-exported so a caller can write a custom tag without taking its own dependency on yaml.

Names are Yaml-prefixed rather than kept as upstream. This package’s index is a flat export *, so a bare Node, Document, Scalar or Schema would sit beside YamlParseStream and parseYaml under names that say nothing about YAML — and Node and Document are DOM globals, which this package, being portable, is expected to be imported alongside.

K = unknown

V = unknown

new YamlPair<K, V>(key, value?): Pair<K, V>

Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Pair.d.ts:18

K

V | null

Pair<K, V>

readonly [NODE_TYPE]: symbol

Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Pair.d.ts:11


key: K

Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Pair.d.ts:13

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


optional srcToken?: CollectionItem

Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Pair.d.ts:17

The CST token that was composed into this pair.


value: V | null

Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Pair.d.ts:15

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

clone(schema?): Pair<K, V>

Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Pair.d.ts:19

YamlSchema

Pair<K, V>


toJSON(_?, ctx?): MapLike

Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Pair.d.ts:20

unknown

YamlToJsContext

MapLike


toString(ctx?, onComment?, onChompKeep?): string

Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Pair.d.ts:21

YamlStringifyContext

() => void

() => void

string