UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

8 lines (7 loc) 570 B
import type { Operation } from '../types'; import type { ApplyPatchOptions } from '../applyPatch/types'; import type { ApplyFn } from './types'; import { type JavaScriptLinked } from '@jsonjoy.com/util/lib/codegen'; export declare const apply: (patch: readonly Operation[], applyOptions: ApplyPatchOptions, doc: unknown) => unknown; export declare const $$apply: (operations: readonly Operation[], applyOptions: ApplyPatchOptions) => JavaScriptLinked<ApplyFn>; export declare const $apply: (operations: readonly Operation[], applyOptions: ApplyPatchOptions) => ApplyFn;