Automerge Repo - v2.3.0-alpha.0
    Preparing search index...

    Variable getCursorPositionConst

    getCursorPosition: <T>(
        doc: Automerge.Doc<T>,
        path: Automerge.Prop[],
        cursor: string,
    ) => number = Automerge.getCursorPosition

    Type declaration

      • <T>(doc: Automerge.Doc<T>, path: Automerge.Prop[], cursor: string): number
      • Returns the current index of the cursor.

        Type Parameters

        • T

          The type of the value contained in the document

        Parameters

        Returns number