json-joy
Version:
Collection of libraries for building collaborative editing apps.
12 lines (11 loc) • 411 B
TypeScript
import type { Op } from '../json-patch/op';
/**
* Takes array of proposed patches and transforms them against an array of
* already accepted patches.
*
* @param accepted Array of already accepted operations.
* @param proposed Array of proposed operations.
*
* @returns Array of transformed changes.
*/
export declare const transform: (accepted: readonly Op[], proposed: readonly Op[]) => readonly Op[];