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

Method require

ark/schema/structure/sequence.ts:332–341  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330 }
331
332 require(): SequenceNode {
333 const { defaultables, optionals, ...inner } = this.inner
334 return this.$.node("sequence", {
335 ...inner,
336 prefix: conflatenate(
337 this.prefix,
338 this.maybes.map(node => this.requiredOf(node))
339 )
340 })
341 }
342
343 /** the element that checks `data[index]` */
344 protected atIndex(data: array, index: number): SequenceElement {

Callers

nothing calls this directly

Calls 4

requiredOfMethod · 0.95
conflatenateFunction · 0.90
nodeMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected