UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

14 lines (13 loc) 266 B
/** * A引用B时,拿引用路径 * @param pathA 路径A * @param pathB 路径B * @returns 相对路径 * @example * ```ts * getRelativePath('a', 'b'); * * // './b' * ``` */ export declare function getRelativePath(pathA: string, pathB: string): string;