UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

10 lines (9 loc) 326 B
import type { Patch } from '../../Patch'; import type * as types from './types'; /** * Encodes a patch into a compact binary format into a JavaScript array. * * @param patch The patch to encode. * @returns The encoded patch as a JavaScript POJO. */ export declare const encode: (patch: Patch) => types.CompactCodecPatch;