UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

10 lines (9 loc) 342 B
import type { Patch } from '../../Patch'; import type * as types from './types'; /** * Decodes a JSON CRDT Patch from a "compact" POJO into a {@link Patch} instance. * * @param data A JavaScript POJO array in the compact codec format. * @returns A decoded patch. */ export declare const decode: (data: types.CompactCodecPatch) => Patch;