Interface IJsonCrdtPatchEditOperation

Represents a JSON CRDT patch operation which edits an existing object.

interface IJsonCrdtPatchEditOperation {
    id: ITimestampStruct;
    obj: 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.

Object which is being edited.

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