Skip to content

createYamlEdits

createYamlEdits(source, path, value, options?): TextEdit[]

Defined in: packages/format-yaml/src/edit.ts:12

Returns the TextEdit needed to set value at path.

Medium-fidelity: uses yaml.Document mutation then reprints — a single full-replace edit.

string

PropertyPath

unknown

ToStringOptions

TextEdit[]