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

Interface AliasPattern

src/resolution/path-aliases.ts:33–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32/** A single alias pattern from `compilerOptions.paths`. */
33export interface AliasPattern {
34 /** The literal prefix before `*` (or the whole pattern if no `*`). */
35 prefix: string;
36 /** The literal suffix after `*` (almost always empty). */
37 suffix: string;
38 /** Whether the pattern contains a `*` wildcard. */
39 hasWildcard: boolean;
40 /**
41 * Replacement templates. When `hasWildcard` is true, `*` in the
42 * replacement is filled with the captured wildcard portion of the
43 * import path. Stored relative to {@link AliasMap.baseUrl}.
44 * tsconfig allows multiple targets per alias (priority order).
45 */
46 replacements: string[];
47}
48
49export interface AliasMap {
50 /** Absolute path. The directory `compilerOptions.paths` is rooted at. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected