MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / ambientModuleDeclares

Function ambientModuleDeclares

src/resolution/ambient-modules.ts:873–875  ·  view source on GitHub ↗
(specifier: string, name: string, isDefault: boolean, ref: UnresolvedRef, context: ResolutionContext)

Source from the content-addressed store, hash-verified

871
872/** Whether the repository declares `specifier` itself, and its declaration exports `name` (or the default). */
873export function ambientModuleDeclares(specifier: string, name: string, isDefault: boolean, ref: UnresolvedRef, context: ResolutionContext): boolean {
874 return findAmbientModuleExport(specifier, { isDefault, isNamespace: false, exportedName: name, memberName: null }, ref, context) !== undefined;
875}
876
877/** The `declare module` block of a declaration file whose own level declares `node`, if any. */
878function blockDeclaring(node: Node, context: ResolutionContext): AmbientModule | undefined {

Callers 1

isBoundToOutOfRepoImportFunction · 0.90

Calls 1

findAmbientModuleExportFunction · 0.85

Tested by

no test coverage detected