deno.land / x / replicache@v10.0.0-beta.0 / db / root.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
import type * as dag from '../dag/mod';import type {Hash} from '../hash';
export function getRoot(store: dag.Store, headName: string): Promise<Hash> { return store.withRead(async read => { const head = await read.getHead(headName); if (head === undefined) { throw new Error(`No head found for ${headName}`); } return head; });}
replicache

Version Info

Tagged at
2 years ago