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

Function composing

ark/schema/shared/utils.ts:234–241  ·  view source on GitHub ↗
(compose: () => t)

Source from the content-addressed store, hash-verified

232
233// a Type read while another node is built or described is nested in it
234export const composing = <t>(compose: () => t): t => {
235 inProgress.compositions++
236 try {
237 return compose()
238 } finally {
239 inProgress.compositions--
240 }
241}
242
243// what a build's name for a callback it's yet to read holds past the callback's own
244export const holeNameMarker = "$hole_"

Callers 10

descriptionFunction · 0.90
bindRefFunction · 0.90
createNodeFunction · 0.90
expressionMethod · 0.90
expressionMethod · 0.90
expressionMethod · 0.90
expressionMethod · 0.90
expressionMethod · 0.90
expressionMethod · 0.90
expressionMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected