parseAllDocuments
parseAllDocuments(
src,opts?):CompatDocument[]
Defined in: src/yaml-compat.ts:269
Real yaml’s parseAllDocuments never throws — a malformed document’s
error is captured in THAT document’s .errors, and documents before/after
it still parse independently. Our parseAll (./core.ts) is single-shot
and throws on the FIRST error anywhere in the stream, so on failure we
can’t recover whichever documents parsed fine before it. Best-effort
approximation: report ONE Document carrying the error. Partial fidelity —
documented gap, not chased further this milestone. (An unsupported option,
unlike a parse error, throws up front — see the option rules above.)
Parameters
Section titled “Parameters”string
Record<string, unknown>