YamlSeq
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.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.
Extends
Section titled “Extends”Collection
Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”T = unknown
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new YamlSeq<
T>(schema?):YAMLSeq<T>
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.d.ts:20
Parameters
Section titled “Parameters”schema?
Section titled “schema?”Returns
Section titled “Returns”YAMLSeq<T>
Overrides
Section titled “Overrides”Collection.constructor
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”Collection.[NODE_TYPE]
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”Collection.addToJSMap
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”Collection.anchor
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”Collection.comment
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”Collection.commentBefore
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”Collection.flow
items:
T[]
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.d.ts:19
Overrides
Section titled “Overrides”Collection.items
range?
Section titled “range?”
optionalrange?:YamlRange|null
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Node.d.ts:33
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.
Inherited from
Section titled “Inherited from”Collection.range
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”Collection.schema
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”Collection.spaceBefore
srcToken?
Section titled “srcToken?”
optionalsrcToken?:Token
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/Node.d.ts:37
The CST token that was composed into this node.
Inherited from
Section titled “Inherited from”Collection.srcToken
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”Collection.tag
Accessors
Section titled “Accessors”tagName
Section titled “tagName”Get Signature
Section titled “Get Signature”get
statictagName():"tag:yaml.org,2002:seq"
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.d.ts:18
Returns
Section titled “Returns”"tag:yaml.org,2002:seq"
Methods
Section titled “Methods”add(
value):void
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.d.ts:21
Adds a value to the collection.
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Collection.add
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”Collection.addIn
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”Collection.clone
delete()
Section titled “delete()”delete(
key):boolean
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.d.ts:30
Removes a value from the collection.
key must contain a representation of an integer for this to succeed.
It may be wrapped in a Scalar.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”boolean
true if the item was found and removed.
Overrides
Section titled “Overrides”Collection.delete
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”Collection.deleteIn
Call Signature
Section titled “Call Signature”get(
key,keepScalar):YamlScalar<T> |undefined
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.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).
key must contain a representation of an integer for this to succeed.
It may be wrapped in a Scalar.
Parameters
Section titled “Parameters”unknown
keepScalar
Section titled “keepScalar”true
Returns
Section titled “Returns”YamlScalar<T> | undefined
Overrides
Section titled “Overrides”Collection.get
Call Signature
Section titled “Call Signature”get(
key,keepScalar?):T|undefined
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.d.ts:40
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).
key must contain a representation of an integer for this to succeed.
It may be wrapped in a Scalar.
Parameters
Section titled “Parameters”unknown
keepScalar?
Section titled “keepScalar?”false
Returns
Section titled “Returns”T | undefined
Overrides
Section titled “Overrides”Collection.get
Call Signature
Section titled “Call Signature”get(
key,keepScalar?):T|YamlScalar<T> |undefined
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.d.ts:41
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).
key must contain a representation of an integer for this to succeed.
It may be wrapped in a Scalar.
Parameters
Section titled “Parameters”unknown
keepScalar?
Section titled “keepScalar?”boolean
Returns
Section titled “Returns”T | YamlScalar<T> | undefined
Overrides
Section titled “Overrides”Collection.get
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”Collection.getIn
has(
key):boolean
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.d.ts:48
Checks if the collection includes a value with the key key.
key must contain a representation of an integer for this to succeed.
It may be wrapped in a Scalar.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”boolean
Overrides
Section titled “Overrides”Collection.has
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”Collection.hasAllNullValues
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”Collection.hasIn
set(
key,value):void
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.d.ts:56
Sets a value in this collection. For !!set, value needs to be a
boolean to add/remove the item from the set.
If key does not contain a representation of an integer, this will throw.
It may be wrapped in a Scalar.
Parameters
Section titled “Parameters”unknown
T
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Collection.set
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”Collection.setIn
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”Collection.toJS
toJSON()
Section titled “toJSON()”toJSON(
_?,ctx?):unknown[]
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.d.ts:57
A plain JS representation of this node
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”unknown[]
Overrides
Section titled “Overrides”Collection.toJSON
toString()
Section titled “toString()”toString(
ctx?,onComment?,onChompKeep?):string
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.d.ts:58
Parameters
Section titled “Parameters”onComment?
Section titled “onComment?”() => void
onChompKeep?
Section titled “onChompKeep?”() => void
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”Collection.toString
from()
Section titled “from()”
staticfrom(schema,obj,ctx):YAMLSeq
Defined in: node_modules/.store/yaml-npm-2.9.1-d61da744fe/package/dist/nodes/YAMLSeq.d.ts:59
Parameters
Section titled “Parameters”schema
Section titled “schema”unknown
Returns
Section titled “Returns”YAMLSeq