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

Function hasChanged

ark/aot/driver.ts:1112–1115  ·  view source on GitHub ↗
(
	mtimes: Record<string, number>,
	currentMtimeOf: (file: string) => number = mtimeOf
)

Source from the content-addressed store, hash-verified

1110// whether a file changed since it was read, as what the precompiler cached
1111// for any module may be read for the next one
1112const hasChanged = (
1113 mtimes: Record<string, number>,
1114 currentMtimeOf: (file: string) => number = mtimeOf
1115) => Object.keys(mtimes).some(file => mtimes[file] !== currentMtimeOf(file))
1116
1117export interface KeyedPrecompiler {
1118 precompile(source: string, id: string): PrecompiledKeyedModule

Callers 2

answerFunction · 0.85
precompileFunction · 0.85

Calls 1

currentMtimeOfFunction · 0.85

Tested by

no test coverage detected