Skip to main content
Module

x/automerge/next.ts>Counter#toJSON

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

Returns the counter value, so that a JSON serialization of an Automerge document represents the counter simply as an integer.

Returns

number