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

Method resolvesLocally

ark/aot/graph.ts:1451–1456  ·  view source on GitHub ↗
(binding: Binding, module: SourceModule)

Source from the content-addressed store, hash-verified

1449
1450 // whether an import's module resolves without asking a bundler
1451 resolvesLocally(binding: Binding, module: SourceModule): boolean {
1452 const { parent } = binding.declaration as { parent?: Node }
1453 if (parent?.type !== "ImportDeclaration") return false
1454 const target = this.resolve(parent.source.value, module, () => false)
1455 return target instanceof SourceModule || target.kind !== "unresolved"
1456 }
1457
1458 importOf(binding: Binding, module: SourceModule): ImportTarget {
1459 const declaration = binding.declaration

Callers 1

replaceArktypeImportsMethod · 0.80

Calls 1

resolveMethod · 0.95

Tested by

no test coverage detected