mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
598 B
TypeScript
14 lines
598 B
TypeScript
// Type definitions for cached-path-relative 1.0
|
|
// Project: https://github.com/ashaffer/cached-path-relative
|
|
// Definitions by: TeamworkGuy2 <https://github.com/TeamworkGuy2>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/**
|
|
* Memoize the results of the path.relative function. path.relative can be an expensive operation
|
|
* if it happens a lot, and its results shouldn't change for the same arguments.
|
|
* Use it just like your normal path.relative, but it's memoized.
|
|
*/
|
|
declare function cachedPathRelative(from: string, to: string): string;
|
|
|
|
export = cachedPathRelative;
|