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

Function resolvesAs

ark/aot/driver.ts:1026–1028  ·  view source on GitHub ↗
(specifier: string, importer: string, target?: string)

Source from the content-addressed store, hash-verified

1024 return
1025 const host = createNodeHost(tracked.opts)
1026 const resolvesAs = (specifier: string, importer: string, target?: string) =>
1027 (host.resolve(specifier, importer) ??
1028 resolveLearned?.(specifier, importer)) === target
1029 for (const importer in tracked.targetsByImporter) {
1030 const targets = tracked.targetsByImporter[importer]
1031 for (const specifier in targets)

Callers 1

keptAcrossFunction · 0.85

Calls 2

resolveLearnedFunction · 0.85
resolveMethod · 0.65

Tested by

no test coverage detected