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

Function optional

ark/aot/settingsValidators.ts:610–610  ·  view source on GitHub ↗
(checker, ...value)

Source from the content-addressed store, hash-verified

608 return checker
609}
610var optional = (checker, ...value) => wrapping(checker, { o: 1, d: value })
611var failsValue = (ctx, checker, data, k, value) =>
612 ctx?._e ?
613 appliesValues && checker.e ? checker.e(ctx, checker, value, k)

Callers 1

Calls 1

wrappingFunction · 0.70

Tested by

no test coverage detected