Automerge Repo - v2.5.2-alpha.5
    Preparing search index...
    • Experimental

      Create a ref from a path string.

      This API is experimental and may change in future versions.

      Type Parameters

      • TDoc
      • TPath extends string

      Parameters

      Returns Ref<InferRefTypeFromString<TDoc, TPath>>

      type Doc = { todos: Array<{ title: string }> };
      const titleRef = refFromString(handle, "todos/0/title");
      titleRef.value(); // string | undefined