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

Function writeMissingInverseMessage

ark/schema/shared/codecs.ts:33–34  ·  view source on GitHub ↗
(expression: string)

Source from the content-addressed store, hash-verified

31const encoders = new WeakMap<BaseRoot, BaseRoot>()
32
33export const writeMissingInverseMessage = (expression: string): string =>
34 `A morph must have an inverse to be encoded: ${expression}`
35
36export const encode = (node: BaseRoot): BaseRoot => {
37 let encoder = encoders.get(node)

Callers 3

codec.test.tsFile · 0.90
isEncodingErrorFunction · 0.85
invertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected