Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/automerge/next_types.ts>Counter#increment

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
Go to Latest
method Counter.prototype.increment
Re-export
import { Counter } from "https://deno.land/x/automerge@2.2.0/next_types.ts";

Increases the value of the counter by delta. If delta is not given, increases the value of the counter by 1.

Will throw an error if used outside of a change callback.

Parameters

_delta: number

Returns

number