Skip to main content
Module

x/automerge/index.ts>next.clone

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

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