Interface ModificationOptions
interface ModificationOptions {
formattingOptions?: FormattingOptions;
getInsertionIndex?: ((properties: string[]) => number);
isArrayInsertion?: boolean;
}
formattingOptions?: FormattingOptions;
getInsertionIndex?: ((properties: string[]) => number);
isArrayInsertion?: boolean;
}
Index
Properties
Optional
formattingOptions
Formatting options. If undefined, the newly inserted code will be inserted unformatted.
Optional
getInsertionIndex
getInsertionIndex ?: ((properties: string[]) => number)
Optional function to define the insertion index given an existing list of properties.
Optional
isArrayInsertion
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.
Options used by
modify
when computing the modification edit operations