Parsed
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLMap.d.ts:13
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.
Extends
Section titled “Extends”YamlMap<K,V>
Type Parameters
Section titled “Type Parameters”K extends YamlParsedNode = YamlParsedNode
V extends YamlParsedNode | null = YamlParsedNode | null
Properties
Section titled “Properties”[NODE_TYPE]
Section titled “[NODE_TYPE]”[NODE_TYPE]:
symbol
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Collection.d.ts:8
Inherited from
Section titled “Inherited from”addToJSMap?
Section titled “addToJSMap?”
optionaladdToJSMap?: (ctx,map,value) =>void
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Node.d.ts:44
Customize the way that a key-value pair is resolved. Used for YAML 1.1 !!merge << handling.
Parameters
Section titled “Parameters”YamlToJsContext | undefined
MapLike
unknown
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”anchor?
Section titled “anchor?”
optionalanchor?:string
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Collection.d.ts:11
An optional anchor on this node. Used by alias nodes.
Inherited from
Section titled “Inherited from”comment?
Section titled “comment?”
optionalcomment?:string|null
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Node.d.ts:24
A comment on or immediately after this
Inherited from
Section titled “Inherited from”commentBefore?
Section titled “commentBefore?”
optionalcommentBefore?:string|null
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Node.d.ts:26
A comment before this
Inherited from
Section titled “Inherited from”
optionalflow?:boolean
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Collection.d.ts:16
If true, stringify this and all child nodes using flow rather than block styles.
Inherited from
Section titled “Inherited from”items:
YamlPair<K,V>[]
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLMap.d.ts:14
Overrides
Section titled “Overrides”range:
YamlRange
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLMap.d.ts:15
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.
Overrides
Section titled “Overrides”schema
Section titled “schema”schema:
YamlSchema|undefined
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Collection.d.ts:7
Inherited from
Section titled “Inherited from”spaceBefore?
Section titled “spaceBefore?”
optionalspaceBefore?:boolean
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Node.d.ts:35
A blank line before this node and its commentBefore
Inherited from
Section titled “Inherited from”srcToken?
Section titled “srcToken?”
optionalsrcToken?:BlockMap|FlowCollection
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLMap.d.ts:16
The CST token that was composed into this node.
Overrides
Section titled “Overrides”
optionaltag?:string
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Node.d.ts:39
A fully qualified tag, if required
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”add(
pair,overwrite?):void
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLMap.d.ts:34
Adds a value to the collection.
Parameters
Section titled “Parameters”YamlPair<K, V> | { key: K; value: V; }
overwrite?
Section titled “overwrite?”boolean
If not set true, using a key that is already in the
collection will throw. Otherwise, overwrites the previous value.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”addIn()
Section titled “addIn()”addIn(
path,value):void
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Collection.d.ts:51
Adds a value to the collection. For !!map and !!omap the value must
be a Pair instance or a { key, value } object, which may not have a key
that already exists in the map.
Parameters
Section titled “Parameters”Iterable<unknown>
unknown
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”clone()
Section titled “clone()”clone(
schema?):Collection
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Collection.d.ts:23
Create a copy of this collection.
Parameters
Section titled “Parameters”schema?
Section titled “schema?”If defined, overwrites the original’s schema
Returns
Section titled “Returns”Collection
Inherited from
Section titled “Inherited from”delete()
Section titled “delete()”delete(
key):boolean
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLMap.d.ts:38
Removes a value from the collection.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”boolean
true if the item was found and removed.
Inherited from
Section titled “Inherited from”deleteIn()
Section titled “deleteIn()”deleteIn(
path):boolean
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Collection.d.ts:56
Removes a value from the collection.
Parameters
Section titled “Parameters”Iterable<unknown>
Returns
Section titled “Returns”boolean
true if the item was found and removed.
Inherited from
Section titled “Inherited from”Call Signature
Section titled “Call Signature”get(
key,keepScalar):YamlScalar<V> |undefined
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLMap.d.ts:39
Returns item at key, or undefined if not found. By default unwraps
scalar values from their surrounding node; to disable set keepScalar to
true (collections are always returned intact).
Parameters
Section titled “Parameters”unknown
keepScalar
Section titled “keepScalar”true
Returns
Section titled “Returns”YamlScalar<V> | undefined
Inherited from
Section titled “Inherited from”Call Signature
Section titled “Call Signature”get(
key,keepScalar?):V|undefined
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLMap.d.ts:40
Parameters
Section titled “Parameters”unknown
keepScalar?
Section titled “keepScalar?”false
Returns
Section titled “Returns”V | undefined
Inherited from
Section titled “Inherited from”Call Signature
Section titled “Call Signature”get(
key,keepScalar?):V|YamlScalar<V> |undefined
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLMap.d.ts:41
Parameters
Section titled “Parameters”unknown
keepScalar?
Section titled “keepScalar?”boolean
Returns
Section titled “Returns”V | YamlScalar<V> | undefined
Inherited from
Section titled “Inherited from”getIn()
Section titled “getIn()”getIn(
path,keepScalar?):unknown
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Collection.d.ts:62
Returns item at key, or undefined if not found. By default unwraps
scalar values from their surrounding node; to disable set keepScalar to
true (collections are always returned intact).
Parameters
Section titled “Parameters”Iterable<unknown>
keepScalar?
Section titled “keepScalar?”boolean
Returns
Section titled “Returns”unknown
Inherited from
Section titled “Inherited from”has(
key):boolean
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLMap.d.ts:42
Checks if the collection includes a value with the key key.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”hasAllNullValues()
Section titled “hasAllNullValues()”hasAllNullValues(
allowScalar?):boolean
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Collection.d.ts:63
Parameters
Section titled “Parameters”allowScalar?
Section titled “allowScalar?”boolean
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”hasIn()
Section titled “hasIn()”hasIn(
path):boolean
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Collection.d.ts:67
Checks if the collection includes a value with the key key.
Parameters
Section titled “Parameters”Iterable<unknown>
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”set(
key,value):void
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLMap.d.ts:43
Sets a value in this collection. For !!set, value needs to be a
boolean to add/remove the item from the set.
Parameters
Section titled “Parameters”K
V
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”setIn()
Section titled “setIn()”setIn(
path,value):void
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Collection.d.ts:72
Sets a value in this collection. For !!set, value needs to be a
boolean to add/remove the item from the set.
Parameters
Section titled “Parameters”Iterable<unknown>
unknown
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”toJS()
Section titled “toJS()”toJS(
doc,__namedParameters?):any
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Node.d.ts:52
A plain JavaScript representation of this node.
Parameters
Section titled “Parameters”YamlDocument<YamlNode<unknown>, boolean>
__namedParameters?
Section titled “__namedParameters?”ToJSOptions
Returns
Section titled “Returns”any
Inherited from
Section titled “Inherited from”toJSON()
Section titled “toJSON()”toJSON<
T>(_?,ctx?,Type?):any
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLMap.d.ts:49
Type Parameters
Section titled “Type Parameters”T extends MapLike = Map<unknown, unknown>
Parameters
Section titled “Parameters”unknown
Conversion context, originally set in Document#toJS()
() => T
If set, forces the returned collection type
Returns
Section titled “Returns”any
Instance of Type, Map, or Object
Inherited from
Section titled “Inherited from”toString()
Section titled “toString()”toString(
ctx?,onComment?,onChompKeep?):string
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLMap.d.ts:52
Parameters
Section titled “Parameters”onComment?
Section titled “onComment?”() => void
onChompKeep?
Section titled “onChompKeep?”() => void
Returns
Section titled “Returns”string