Skip to main content
Module

x/automerge/index.ts>next.Counter#decrement

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

Decreases the value of the counter by delta. If delta is not given, decreases the value of the counter by 1.

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

Parameters

_delta: number

Returns

number