UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

7 lines (6 loc) 449 B
import type { Operation } from '../types'; import type { Op } from '../op'; import type { ApplyPatchOptions, OpResult, PatchResult } from './types'; export declare function applyOp(doc: unknown, op: Op, mutate: boolean): OpResult; export declare function applyOps(doc: unknown, ops: readonly Op[], mutate: boolean): PatchResult; export declare function applyPatch(doc: unknown, patch: readonly Operation[], options: ApplyPatchOptions): PatchResult;