Skip to main content
Module

x/automerge/next.ts>splitBlock

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

Insert a new block marker at the given index

Parameters

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