Skip to content

parseAllDocuments

parseAllDocuments(src, _opts?): CompatDocument[]

Defined in: src/yaml-compat.ts:187

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 (./index.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.

string

Record<string, unknown>

CompatDocument[]