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

Function hashOfFile

ark/aot/cache.ts:270–274  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

268 const mtimes: Record<string, number> = {}
269 const hashes: Record<string, string | null> = {}
270 const hashOfFile = (file: string) => {
271 mtimes[file] = mtimeOf(file)
272 const source = readFile(file)
273 return source === undefined ? null : hashOf(source)
274 }
275 const targets: Record<string, string | null> = {}
276 const tsconfigs: Record<string, string | null> = {}
277 const answers: Record<string, string | null> = {}

Callers 1

holdsFromFunction · 0.85

Calls 3

readFileFunction · 0.90
mtimeOfFunction · 0.85
hashOfFunction · 0.70

Tested by

no test coverage detected