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

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

Returns the counter value as a decimal string. If x is a counter object, this method is called e.g. when you do ['value: ', x].join('') or when you use string interpolation: value: ${x}.

Returns

string