Skip to main content
Module

x/automerge/next.ts>init

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
Go to Latest
function init
import { init } from "https://deno.land/x/automerge@2.2.0/next.ts";

Create a new automerge document

Parameters

optional
_opts: ActorId | InitOptions<T>
  • Either an actorId or an InitOptions (which may contain an actorId). If this is null the document will be initialised with a random actor ID