Skip to content

Function: pnIncrement()

pnIncrement(clientID, delta, current?): PnCounterMap

Defined in: core/src/schema/crdt.ts:89

Local increment. delta may be negative — negative deltas write to the underlying negative half-counter, positive to the positive. Zero deltas are a no-op (allocations avoided).

string

number

PnCounterMap | null

PnCounterMap