json-joy
Version:
Collection of libraries for building collaborative editing apps.
10 lines (9 loc) • 340 B
TypeScript
import type { Patch } from '../../Patch';
import type * as types from './types';
/**
* Encodes a patch into a JSON CRDT Patch "verbose" format.
*
* @param patch The {@link Patch} to encode.
* @returns A JavaScript POJO object in JSON CRDT Patch "verbose" format.
*/
export declare const encode: (patch: Patch) => types.JsonCodecPatch;