Skip to content

YamlAsyncVisitor

YamlAsyncVisitor = asyncVisitorFn<unknown> | { Alias?: asyncVisitorFn<YamlAlias>; Collection?: asyncVisitorFn<YamlMap | YamlSeq>; Map?: asyncVisitorFn<YamlMap>; Node?: asyncVisitorFn<YamlAlias | YamlScalar | YamlMap | YamlSeq>; Pair?: asyncVisitorFn<YamlPair>; Scalar?: asyncVisitorFn<YamlScalar>; Seq?: asyncVisitorFn<YamlSeq>; Value?: asyncVisitorFn<YamlScalar | YamlMap | YamlSeq>; }

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

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.