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

Function resolve

ark/schema/scope.ts:1010–1014  ·  view source on GitHub ↗
(
		name: name
	)

Source from the content-addressed store, hash-verified

1008 }
1009
1010 resolve<name extends exportedNameOf<$>>(
1011 name: name
1012 ): instantiateRoot<$[name]> {
1013 return (this._lazy ?? this.export())[name as never]
1014 }
1015
1016 /** the module `exportLazily` returns, once read */
1017 private _lazy: InternalModule | undefined

Callers 1

resolvingFunction · 0.50

Calls 4

hasArkKindFunction · 0.90
bindModuleLazilyFunction · 0.85
finalizeExportFunction · 0.85
exportMethod · 0.80

Tested by

no test coverage detected