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

Function check

ark/aot/settingsValidators.ts:540–546  ·  view source on GitHub ↗
(code, description, test)

Source from the content-addressed store, hash-verified

538 return t
539}
540var check = (code, description, test) => {
541 const checker = (data, ctx) => test(data) || !failsAt(ctx, checker, data)
542 checker.code = code
543 checker.description = description
544 checker.test = test
545 return checker
546}
547var wrapping = (checker, also) =>
548 Object.assign((data, ctx) => checker(data, ctx), checker, also)
549var stringCheck = /* @__PURE__ */ check(

Callers 6

moreThanFunction · 0.70
minLengthFunction · 0.70
divisorFunction · 0.70
unitFunction · 0.70
unitsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected