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

Function heldAs

ark/aot/graph.ts:547–550  ·  view source on GitHub ↗
(depth: number, copied = 0)

Source from the content-addressed store, hash-verified

545const maxDepth = 16
546
547export const heldAs = (depth: number, copied = 0): Held => ({
548 depth: depth > maxDepth ? Infinity : depth,
549 copied: Math.min(copied, maxDepth)
550})
551
552// what a value holds of another: e.g. `o.a` its "element", `list.sort()`
553// "self", `list.slice()` a "copy", `Object.entries(o)` "pairs" made for its

Callers 7

writtenBeforeMethod · 0.90
writtenInMethod · 0.90
writtenThroughThisMethod · 0.90
fixedDepthOfBindingMethod · 0.90
heldThroughFunction · 0.85
wrapperOfFunction · 0.85
elsewhereOfMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected