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

Function minLength

ark/aot/settingsValidators.ts:567–570  ·  view source on GitHub ↗
(
	rule,
	description = rule === 1 ? "non-empty" : `at least ${rule} characters`
)

Source from the content-addressed store, hash-verified

565 description = rule === 0 ? "positive" : `more than ${rule}`
566) => check("min", description, data => data > rule)
567var minLength = (
568 rule,
569 description = rule === 1 ? "non-empty" : `at least ${rule} characters`
570) => check("minLength", description, data => data.length >= rule)
571var divisor = (
572 rule,
573 description = rule === 2 ? "even" : `a multiple of ${rule}`

Callers 2

checkers.tsFile · 0.85

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected