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 beb2b37 commit c185e35Copy full SHA for c185e35
src/types.ts
@@ -18,6 +18,10 @@ export type Cache = {
18
}
19
20
21
+/**
22
+ * A PathContext represents a path (relPath) relative to an abolute path (refPath)
23
+ * Note that relPath is not necessary relative, but it is, relPath is relative to refPath.
24
+ */
25
export type PathContext = {
26
/** reference path */
27
refPath : string,
@@ -27,10 +31,9 @@ export type PathContext = {
31
28
32
29
33
export type PathHandlers = {
34
+ /** the extension name (or type) of a file (incluting the leading dot, eg. '.svg') */
30
35
extname(filepath : string) : string,
- /*
- * relative to absolute module path resolution.
- */
36
+ /** relative to absolute module path resolution */
37
resolve(pathCx : PathContext) : string,
38
39
0 commit comments