deth
Version:
Ethereum node focused on Developer Experience
11 lines (10 loc) • 489 B
TypeScript
import { Opaque } from 'ts-essentials';
export declare type Path = Opaque<'Path', string>;
export declare function makePath(value: string): Path;
/**
* if path is relative use basePath to create absolute one
* NOTE: if path is already absolute it will just use it
*/
export declare function relativePathToPath(relativePath: string, basePath: string): Opaque<"Path", string>;
export declare function getBaseName(path: Path): string;
export declare function getDirName(path: Path): Path;