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

Function sequenceOf

ark/sets/structure/sequence.ts:45–50  ·  view source on GitHub ↗
(result: SequenceTuple)

Source from the content-addressed store, hash-verified

43
44 // its elements allow undefined only where both did, whatever ctx.$ configures
45 const sequenceOf = (result: SequenceTuple) => {
46 const inner = sequenceTupleToInner(result)
47 return ctx.$.node("sequence", normalizedSequence(inner) ?? inner, {
48 reduced: true
49 })
50 }
51
52 return (
53 viableBranches.length === 0 ?

Callers 1

sequence.tsFile · 0.85

Calls 3

sequenceTupleToInnerFunction · 0.85
normalizedSequenceFunction · 0.85
nodeMethod · 0.80

Tested by

no test coverage detected