We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd6515d commit a169bc5Copy full SHA for a169bc5
types/cached-path-relative/index.d.ts
@@ -3,6 +3,11 @@
3
// Definitions by: TeamworkGuy2 <https://github.com/TeamworkGuy2>
4
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6
+/**
7
+ * Memoize the results of the path.relative function. path.relative can be an expensive operation
8
+ * if it happens a lot, and its results shouldn't change for the same arguments.
9
+ * Use it just like your normal path.relative, but it's memoized.
10
+ */
11
declare function cachedPathRelative(from: string, to: string): string;
12
13
export = cachedPathRelative;
0 commit comments