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

Function units

ark/aot/settingsValidators.ts:880–884  ·  view source on GitHub ↗
(
	values,
	code = "discriminant",
	description = describeValues(values)
)

Source from the content-addressed store, hash-verified

878 return !passes
879}
880var units = (
881 values,
882 code = "discriminant",
883 description = describeValues(values)
884) => check(code, description, data => values.includes(data))
885var describeDomains = cases =>
886 listed(
887 Object.keys(cases).map(domain => {

Callers 1

Calls 2

describeValuesFunction · 0.70
checkFunction · 0.70

Tested by

no test coverage detected