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

Method resolve

ark/type/type.ts:377–383  ·  view source on GitHub ↗
(k: string)

Source from the content-addressed store, hash-verified

375 : undefined
376 if (typeAttachments) {
377 const resolve = (k: string) => {
378 const bound = $.bindKw(
379 typeAttachments[k as never] as BaseRoot | GenericRoot
380 )
381 // a resolved scope has already compiled the nodes bound before it
382 return $.resolved ? finalizeExport($, bound) : bound
383 }
384 for (const k in typeAttachments) defineLazily(this, k, resolve)
385 }
386 // a scope's own ambient replaces those attachments, so it's bound as they are

Callers

nothing calls this directly

Calls 1

finalizeExportFunction · 0.90

Tested by

no test coverage detected