Interface IJsonCrdtPatchOperation

Represents a common interface for all JSON CRDT patch operations.

interface IJsonCrdtPatchOperation {
    id: ITimestampStruct;
    name(): JsonCrdtPatchMnemonic;
    span(): number;
    toString(tab?): string;
}

Hierarchy (view full)

Implemented by

Properties

Methods

Properties

Unique ID of that operation within the document, Lamport timestamp.

Methods

  • Some operations, such as array and string insert/delete operations are compound a single operation instance effectively represents multiple operations (one per character or array element).

    This method returns the effective number of operations.

    Returns number

  • Parameters

    • Optional tab: string

    Returns string