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

Function elementIsRequired

ark/sets/structure/sequence.ts:327–328  ·  view source on GitHub ↗
(el: SequenceElement)

Source from the content-addressed store, hash-verified

325 ])
326
327const elementIsRequired = (el: SequenceElement) =>
328 el.kind === "prefix" || el.kind === "postfix"
329
330// a branch with required elements left on either side has no length both allow
331const fitsLength = (s: SequenceIntersectionState) =>

Callers 1

_intersectSequencesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected