Skip to content

editJsonc

editJsonc(source, path, value, formattingOptions?): string

Defined in: packages/format-jsonc/src/edit.ts:32

Sets value at path in a JSONC source string, preserving comments.

Combines createJsoncEdits and applyJsoncEdits.

string

PropertyPath

unknown

FormattingOptions

string