render
render(
items: readonly readonly [Document,string][],transforms: readonlyTransform[],opts:object):Rendered[]
Render every [document, path] pair to YAML.
Invariants:
- Transforms apply in list order: index 0 first, last index last. This is the whole ordering contract — the pipeline does not sort or reorder.
- Each document is rendered from an independent deep clone; the caller’s models are never mutated.
headerandautoDedentare threaded straight intotoYamlon every document (ADR-0002: no global carries them).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
readonly readonly [ |
|
|
readonly |
|
|
{ |
|
|
|
|
|
|
Returns
Section titled “Returns”Rendered[]