Interface EntityAttrCommand<V>

Command payload for a CRDT entity attribute.

interface EntityAttrCommand {
    add?: readonly V[];
    del?: true | readonly V[];
    set?: V;
    splice?: readonly [string, number, V];
}

Type Parameters

  • V

Properties

Properties

add?: readonly V[]

Adds given set of values to attribute.

del?: true | readonly V[]

Removes all existing copies of given values to attribute, or all values if true.

set?: V

Sets attribute to specified value, removing all existing values.

splice?: readonly [string, number, V]

Deletes given number of values at or after specified list index, and inserts given list of values before specified index.

Generated using TypeDoc