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

Function wrapped

ark/type/checkers.ts:1506–1510  ·  view source on GitHub ↗
(data, ctx)

Source from the content-addressed store, hash-verified

1504 const description = nullableDescriptionOf(domain)
1505 const site: FailureSite = { code: "discriminant", description }
1506 const wrapped: Checker = (data, ctx) =>
1507 data === null ||
1508 (typeof data === domain ?
1509 checker === 1 || checker(data, ctx)
1510 : !failsAt(ctx as never, site, data))
1511 wrapped.description = description
1512 return wrapped
1513}) satisfies Fn

Callers

nothing calls this directly

Calls 3

failsAtFunction · 0.90
testMethod · 0.80
checkerFunction · 0.70

Tested by

no test coverage detected