json-joy
    Preparing search index...

    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): string;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    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

      • Optionaltab: string

      Returns string