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

Method tAllows

ark/schema/structure/sequence.ts:360–369  ·  view source on GitHub ↗
(data: array, ctx: InternalTraversal | AliasDepth)

Source from the content-addressed store, hash-verified

358
359 // minLength/maxLength should be checked by Intersection before either traversal
360 tAllows(data: array, ctx: InternalTraversal | AliasDepth): boolean {
361 for (let i = 0; i < data.length; i++) {
362 if (
363 !travKey(i, () => this.atIndex(data, i).node.tAllows(data[i], ctx), ctx)
364 )
365 return false
366 }
367
368 return true
369 }
370
371 tApply(data: array, ctx: InternalTraversal): void {
372 const errN = ctx.errN

Callers

nothing calls this directly

Calls 2

atIndexMethod · 0.95
travKeyFunction · 0.90

Tested by

no test coverage detected