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#toJSON

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.toJSON
Re-export
import { Counter } from "https://deno.land/x/automerge@2.2.0/next_types.ts";

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

Returns

number