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

Method getNearestAliases

src/resolution/types.ts:258–258  ·  view source on GitHub ↗

* The aliases of the tsconfig / jsconfig nearest `fromFile` below the * project root that declares `paths` or `baseUrl` — a monorepo app's own * `@/*`, a nested Vite app's `"baseUrl": "src"` — or null.

(fromFile: string)

Source from the content-addressed store, hash-verified

256 * `@/*`, a nested Vite app's `"baseUrl": "src"` — or null.
257 */
258 getNearestAliases?(fromFile: string): import('./path-aliases').AliasMap | null;
259 /**
260 * The folder `$_SERVER['DOCUMENT_ROOT']` names for a PHP include in
261 * `fromFile` (#3298): the project's `codegraph.json` `webRoot`, else the one

Callers 3

resolveAliasedImportFunction · 0.80
ownConfigCandidatesFunction · 0.80
importBindingTailFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected