Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/automerge/next.ts>getCursorPosition

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

Returns the current index of the cursor.

Parameters

doc: Doc<T>
  • The document
path: stable.Prop[]
  • The path to the string
cursor: Cursor
  • The cursor

Returns

number