@bleed-believer/path-alias
Version:
Assign path alias using tsconfig.json file
16 lines (15 loc) • 530 B
TypeScript
import type { TsConfigJson, TsConfigResult } from 'get-tsconfig';
import type { Options as SwcOptions } from '@swc/core';
export declare class TsConfig {
#private;
get cwd(): string;
get path(): string;
get config(): TsConfigJson;
get outDir(): string;
get rootDir(): string;
get baseUrl(): string;
static load(searchPath?: string, filename?: string): TsConfig;
constructor(result: TsConfigResult);
toSwcConfig(): SwcOptions;
resolveAll(moduleName: string, dist?: boolean): string[];
}