Skip to main content
Module

x/automerge/index.ts>next.init

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

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