Options used by modify when computing the modification edit operations

interface ModificationOptions {
    formattingOptions?: FormattingOptions;
    getInsertionIndex?: ((properties: string[]) => number);
    isArrayInsertion?: boolean;
}

Properties

formattingOptions?: FormattingOptions

Formatting options. If undefined, the newly inserted code will be inserted unformatted.

getInsertionIndex?: ((properties: string[]) => number)

Optional function to define the insertion index given an existing list of properties.

isArrayInsertion?: boolean

Default false. If JSONPath refers to an index of an array and isArrayInsertion is true, then modify will insert a new item at that location instead of overwriting its contents.