immutable-json-patch
Version:
Immutable JSON patch with support for reverting operations
10 lines • 476 B
TypeScript
import type { JSONPatchDocument, RevertJSONPatchOptions } from './types.js';
/**
* Create the inverse of a set of json patch operations
* @param document
* @param operations Array with JSON patch actions
* @param [options]
* @return Returns the operations to revert the changes
*/
export declare function revertJSONPatch<T, U>(document: T, operations: JSONPatchDocument, options?: RevertJSONPatchOptions): JSONPatchDocument;
//# sourceMappingURL=revertJSONPatch.d.ts.map