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

Function isEncodingError

ark/aot/precompile.ts:8918–8920  ·  view source on GitHub ↗
(e: Error)

Source from the content-addressed store, hash-verified

8916// a missing inverse, which a Type's definition alone decides, or a missing
8917// import of arktype/codecs, either failing the build whatever the build reads
8918const isEncodingError = (e: Error) =>
8919 e.message.startsWith(writeMissingInverseMessage("")) ||
8920 e.message === encodeWithoutCodecsMessage
8921
8922const codecsSpecifier = /^(?:arktype|@ark\/type)\/codecs$/
8923

Callers 2

refusePlannedMethod · 0.85
diagnosticsOfMethod · 0.85

Calls 1

Tested by

no test coverage detected