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

Function mtimeOf

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

Source from the content-addressed store, hash-verified

132export const fingerprintOfCode = (): string => (fingerprint ??= fingerprintOf())
133
134export const mtimeOf = (file: string): number =>
135 statSync(file, { throwIfNoEntry: false })?.mtimeMs ?? -1
136
137// a cache's answers outlive the build: one in node_modules/.cache/ark under
138// the project's root, as Vite keeps its own, for each version of the code,

Callers 6

answerFunction · 0.90
createTrackedPrecompilerFunction · 0.90
keptAcrossFunction · 0.90
currentMtimeOfFunction · 0.90
constructorMethod · 0.85
hashOfFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected