json-p3
Version:
JSONPath, JSON Pointer and JSON Patch
12 lines (11 loc) • 477 B
TypeScript
import { JSONValue } from "../types";
import { OpObject } from "./patch";
export { JSONPatch } from "./patch";
export { JSONPatchError, JSONPatchTestFailure } from "./errors";
export type { OpObject } from "./patch";
/**
* Apply the JSON Patch _patch_ to JSON-like data _value_.
* @param ops - JSON Patch operations following RFC 6902.
* @param value - The target JSON-like document to patch.
*/
export declare function apply(ops: OpObject[], value: JSONValue): JSONValue;