| 29 | |
| 30 | /** A single alias pattern from `compilerOptions.paths`. */ |
| 31 | export 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 | |
| 47 | export interface AliasMap { |
| 48 | /** Absolute path. The directory `compilerOptions.paths` is rooted at. */ |
nothing calls this directly
no outgoing calls
no test coverage detected