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

Function isSourceRead

ark/aot/nextProgram.ts:639–640  ·  view source on GitHub ↗
(answer: ProgramAnswer, source: string)

Source from the content-addressed store, hash-verified

637}
638
639export const isSourceRead = (answer: ProgramAnswer, source: string): boolean =>
640 answer.sourceHash === hashOf(source)
641
642export const isInProgram = ({ dir }: ReadProgramDir, id: string): boolean =>
643 existsSync(answerFileOf(dir, id))

Callers 1

answerFromProgramFunction · 0.90

Calls 1

hashOfFunction · 0.70

Tested by

no test coverage detected