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

Constructors

Properties

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

Methods

  • initialize initialize this text with context and internal text.

    Parameters

    • context: ChangeContext<Indexable>
    • counter: CRDTCounter

    Returns void