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

Interface AliasPattern

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected