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

Function isBuildError

ark/aot/host.ts:566–567  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

564
565// what the precompiler throws to say what it can't build, not a crash
566export const isBuildError = (e: unknown): e is Error =>
567 e instanceof Error && (e.name === "Error" || e.name === "ParseError")
568
569// a bundler prints an error's stack, which would show the precompiler's frames
570export const rethrowAsBuildError = (e: unknown): never => {

Callers 2

runFunction · 0.90
rethrowAsBuildErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected