Experimental
Find a ref by its URL.
URL format: automerge:{documentId}/{path}#{heads}
automerge:{documentId}/{path}#{heads}
This API is experimental and may change in future versions.
The expected type of the value this ref points to (defaults to unknown)
const ref = await findRef<string>(repo, "automerge:abc123/todos/0/title" as RefUrl);ref.value(); // string | undefined Copy
const ref = await findRef<string>(repo, "automerge:abc123/todos/0/title" as RefUrl);ref.value(); // string | undefined
Find a ref by its URL.
URL format:
automerge:{documentId}/{path}#{heads}This API is experimental and may change in future versions.