Counter is a custom data type that is used to counter.

Constructors

Properties

context?: ChangeContext<Indexable>
counter?: CRDTCounter
value: number | Long
valueType: CounterType

Methods

  • Internal

    getValue returns the value of this counter;

    Returns number | Long

  • getValueType returns the value type of this counter.

    Returns CounterType

  • Internal

    initialize initialize this text with context and internal text.

    Parameters

    • context: ChangeContext<Indexable>
    • counter: CRDTCounter

    Returns void