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