Skip to main content
Module

x/automerge/next.ts>clone

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

Make a full writable copy of an automerge document

Parameters

doc: Doc<T>
  • The document to clone
optional
_opts: ActorId | InitOptions<T>
  • Either an actor ID to use for the new doc or an InitOptions