@notjustcoders/ioc-arise
Version:
Arise type-safe IoC containers from your code. Zero overhead, zero coupling.
22 lines • 790 B
TypeScript
export declare class TsConfigPathsResolver {
private baseUrl;
private paths;
constructor(startDir: string);
private findTsConfig;
/**
* Strips JSON comments while respecting string literals.
* A simple regex is not safe here because tsconfig path patterns like
* "@/*" contain "/*" which would be mis-detected as a block comment.
*/
private stripJsonComments;
private loadTsConfig;
/**
* Resolves a path-alias import to an absolute filesystem path.
* Returns null if the import is a regular relative import or no alias matches.
*/
resolveImportToAbsolute(importPath: string): string | null;
private tryMatch;
private findFile;
hasPathAliases(): boolean;
}
//# sourceMappingURL=tsConfigPathsResolver.d.ts.map