alapa
Version:
A cutting-edge web development framework designed to revolutionize the way developers build modern web applications.
20 lines (19 loc) • 984 B
TypeScript
export declare class PathResolver {
static rootDir: string;
static resolve(filePath: string, options?: {
currentPath?: string;
}): string;
static dirname(filePath: string): string;
protected static removeEXTDot(extname: string): string;
protected static replaceSeparator(filePath: string): string;
protected static removeDoubleSlashes(filePath: string): string;
protected static removeSlashFromTheEnd(filePath: string): string;
protected static hasRoot(filePath: string): boolean;
protected static updateRoot(defaultExtension: string): void;
protected static removeRootDir(filePath: string): string;
protected static removeSlashFromBeginning(filePath: string): string;
protected static removeDotFromBeginning(filePath: string): string;
protected static addExtension(filePath: string, ext?: string): string;
static normalizePath(filePath: string): string;
protected static validExtension(ext: string): boolean;
}