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

Function deferredCallable

ark/schema/node.ts:218–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216
217/** a callable and cache a Type holds until it's read, and then is a node of its kind */
218export const deferredCallable = (): { fn: Function; c: object } => {
219 const c = new NodeCache()
220 return { fn: callableOf(c), c }
221}
222
223class NodeCache {
224 self: any

Callers 1

deferFunction · 0.90

Calls 1

callableOfFunction · 0.85

Tested by

no test coverage detected