@omlet/cli
Version:
Omlet (https://omlet.dev) is a component analytics tool that uses a CLI to scan your codebase to detect components and their usage. Get real usage insights from customizable charts to measure adoption across all projects and identify opportunities to impr
23 lines (22 loc) • 706 B
TypeScript
export declare enum PathResolutionEntryType {
Export = "export",
Alias = "alias",
Import = "import"
}
export interface PathResolutionEntry {
name: string;
patterns: string[];
type: PathResolutionEntryType;
sourcePath: string;
}
export declare class PathResolutionMap {
private aliases;
private entrySourcePaths;
private entryType;
constructor(entryType: PathResolutionEntryType);
hasEntry(name: string): boolean;
getEntry(name: string): PathResolutionEntry | undefined;
entries(): PathResolutionEntry[];
addMapping(name: string, paths: string | string[], sourcePath: string): void;
merge(...others: PathResolutionMap[]): PathResolutionMap;
}