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

Function refuse

ark/aot/unplugin.ts:1520–1523  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

1518 return
1519 // webpack awaits this unguarded, so it reports an error rather than crash
1520 const refuse = (message: string): undefined => {
1521 if (meta.framework !== "webpack") throwBuildError(message)
1522 this.error(message)
1523 }
1524 if (id.startsWith("~arktype/")) {
1525 const problem = importer && copiedProblemOf(this, id, importer)
1526 return problem ? refuse(problem) : virtual + id

Callers 1

handlerFunction · 0.70

Calls 2

throwBuildErrorFunction · 0.90
errorMethod · 0.45

Tested by

no test coverage detected