MCPcopy Create free account
hub / github.com/arktypeio/arktype / emptySnapshot

Function emptySnapshot

ark/aot/cache.ts:41–48  ·  view source on GitHub ↗
(parent: string | undefined)

Source from the content-addressed store, hash-verified

39}
40
41export const emptySnapshot = (parent: string | undefined): Snapshot => ({
42 parent,
43 reads: [],
44 resolutions: [],
45 asked: [],
46 tsconfigs: [],
47 given: []
48})
49
50export const hashOf = (text: string): string =>
51 createHash("sha256").update(text).digest("base64url")

Callers 3

createTrackedPrecompilerFunction · 0.90
snapshotOfFunction · 0.90
cache.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected