reverse.d.ts 636 B

123456789
  1. import type { StructuredPatch } from '../types.js';
  2. /**
  3. * @param patch either a single structured patch object (as returned by `structuredPatch`) or an array of them (as returned by `parsePatch`).
  4. * @returns a new structured patch which when applied will undo the original `patch`.
  5. */
  6. export declare function reversePatch(structuredPatch: StructuredPatch): StructuredPatch;
  7. export declare function reversePatch(structuredPatch: StructuredPatch[]): StructuredPatch[];
  8. export declare function reversePatch(structuredPatch: StructuredPatch | StructuredPatch[]): StructuredPatch | StructuredPatch[];
  9. //# sourceMappingURL=reverse.d.ts.map