import { YAML } from "https://deno.land/x/aether@v0.0.3/deps.ts";
const { parseAllDocuments } = YAML;
Parse the input as a stream of YAML documents.
Documents should be separated from each other by ...
or ---
marker lines.
Type Parameters
optional
T extends ParsedNode = ParsedNodeParameters
optional
options: ParseOptions & DocumentOptions & SchemaOptionsReturns
Document.Parsed<T>[] | EmptyStream
If an empty docs
array is returned, it will be of type
EmptyStream and contain additional stream information. In
TypeScript, you should use 'empty' in docs
as a type guard for it.