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

Function unit

ark/aot/settingsValidators.ts:582–583  ·  view source on GitHub ↗
(value, description = printValue(value))

Source from the content-addressed store, hash-verified

580}
581var describeValues = values => listed(values.map(printValue))
582var unit = (value, description = printValue(value)) =>
583 check("unit", description, data => data === value)
584var booleanChecker = /* @__PURE__ */ check(
585 "discriminant",
586 "boolean",

Callers 1

Calls 2

printValueFunction · 0.70
checkFunction · 0.70

Tested by

no test coverage detected