Skip to content

isYamlDocument

const isYamlDocument: <T>(node) => node is YamlDocument<T>

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

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.

T extends YamlNode = YamlNode

any

node is YamlDocument<T>