Skip to main content
Module

x/automerge/index.ts>next.changeAt

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

Make a change to the document as it was at a particular point in history

Parameters

doc: Doc<T>
  • The document to update
scope: Heads
  • The heads representing the point in history to make the change
options: string | ChangeOptions<T> | ChangeFn<T>
optional
callback: ChangeFn<T>
  • A ChangeFn to be used if options was a string