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

Function run

ark/aot/cli.ts:166–177  ·  view source on GitHub ↗
(build: () => result)

Source from the content-addressed store, hash-verified

164}
165
166const run = <result>(build: () => result): result => {
167 try {
168 return build()
169 } catch (e) {
170 // e.g. a config module that can't be read or a tsconfig that's missing,
171 // which the message names
172 if (!isBuildError(e)) throw e
173 if (isCheckJson) emitJsonFailure(e.message, 1)
174 console.error(e.message)
175 process.exit(1)
176 }
177}
178
179const declare = (): never => {
180 const checker = values.checker as string | undefined

Callers 14

inContextFunction · 0.70
withActiveMethod · 0.70
outcomeOfFunction · 0.70
inArktypeFunction · 0.70
validateBothFunction · 0.70
runMethod · 0.70
evaluateBodyMethod · 0.70
declareFunction · 0.70
cli.tsFile · 0.70
scopeNamesMethod · 0.50
getMethod · 0.50

Calls 4

isBuildErrorFunction · 0.90
emitJsonFailureFunction · 0.85
buildFunction · 0.50
errorMethod · 0.45

Tested by

no test coverage detected