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

Function answerFileOf

ark/aot/nextProgram.ts:91–92  ·  view source on GitHub ↗
(dir: string, id: string)

Source from the content-addressed store, hash-verified

89 createHash("sha256").update(text).digest("hex").slice(0, 24)
90
91export const answerFileOf = (dir: string, id: string): string =>
92 join(dir, `${hashOf(id)}.json`)
93
94// where next.config's read names its directory for the loader processes
95// Turbopack starts, which inherit it from the process loading next.config

Callers 4

answerFromProgramFunction · 0.90
readAndWriteFunction · 0.85
programAnswerOfFunction · 0.85
isInProgramFunction · 0.85

Calls 2

joinFunction · 0.85
hashOfFunction · 0.70

Tested by

no test coverage detected