@fewings/core
Version:
Useful pure functions for frontend development
6 lines (4 loc) • 301 B
text/typescript
declare function getSharedPathPrefix(path1: string, path2: string): string;
declare function getPathDepthDiff(from: string, to: string): number;
declare function resolveRelativeImportPath(from: string, to: string): string;
export { getPathDepthDiff, getSharedPathPrefix, resolveRelativeImportPath };