Skip to main content
Module

x/automerge/index.ts>next.updateBlock

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

Update the block marker at the given index

Parameters

doc: Doc<T>
path: stable.Prop[]
index: number | Cursor
block: { [key: string]: MaterializeValue; }