Skip to content

ToDataOptions

Options for toData.

Property Type Description

autoDedent?

boolean

Dedent each step’s run script, matching toYaml’s default. Defaults to true, so a no-options toData / toYaml pair can never disagree about run. Pass false to observe the authored string verbatim.

comments?

boolean

Surface commented nodes as CommentNode so comment placement is observable as data. Defaults to false (comments unwrapped to their values).