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

Function reset

ark/aot/unplugin.ts:253–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

251 }
252 // a changed file or configuration may need a new worker
253 const reset = () => {
254 checkSettings()
255 precompiler = precompiler.then(async send =>
256 // a config the worker can't read is reported at the next transform
257 (await send(["reset"]).catch(() => false)) ? replace(send) : send
258 )
259 }
260 // a build fails under settings it can't build with
261 function startBuild(this: object | void) {
262 reset()

Callers 1

startBuildFunction · 0.70

Calls 3

checkSettingsFunction · 0.85
sendFunction · 0.85
replaceFunction · 0.70

Tested by

no test coverage detected