Skip to main content
Module

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

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

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

Returns

number