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

Function allowsUnused

ark/schema/node.ts:1094–1100  ·  view source on GitHub ↗
(data: d["prerequisite"])

Source from the content-addressed store, hash-verified

1092
1093 // allows data without using the Type, e.g. a key an intersection checks
1094 allowsUnused(data: d["prerequisite"]): boolean {
1095 const allows = this.c.preJit ?? this.allows
1096 // as it's defined, so no call has passed a context to read
1097 return this.allowsCtx ?
1098 readingContextWith(readContextAtDefinition, () => allows(data))
1099 : allows(data)
1100 }
1101
1102 /** _in should be used internally instead */
1103 get in(): unknown {

Callers

nothing calls this directly

Calls 2

readingContextWithFunction · 0.90
allowsFunction · 0.50

Tested by

no test coverage detected