Skip to main content
Module

x/automerge/next.ts>getCursor

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

Returns a cursor for the given position in a string.

Parameters

doc: Doc<T>
  • The document
path: stable.Prop[]
  • The path to the string
index: number
  • The current index of the position of the cursor