MCPcopy
hub / github.com/cloudflare/capnweb / isValidationTypeError

Function isValidationTypeError

packages/capnweb-validate/src/error.ts:25–30  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

23}
24
25export function isValidationTypeError(err: unknown): err is TypeError {
26 return (
27 err instanceof TypeError &&
28 (err as TaggedValidationError)[RPC_VALIDATION_ERROR] === true
29 );
30}

Callers 3

unionFunction · 0.85
reportValidationFailureFunction · 0.85
wrapResolvedValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…