Skip to content

Commit c185e35

Browse files
wip(docs): enhancements
1 parent beb2b37 commit c185e35

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/types.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export type Cache = {
1818
}
1919

2020

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+
*/
2125
export type PathContext = {
2226
/** reference path */
2327
refPath : string,
@@ -27,10 +31,9 @@ export type PathContext = {
2731

2832

2933
export type PathHandlers = {
34+
/** the extension name (or type) of a file (incluting the leading dot, eg. '.svg') */
3035
extname(filepath : string) : string,
31-
/*
32-
* relative to absolute module path resolution.
33-
*/
36+
/** relative to absolute module path resolution */
3437
resolve(pathCx : PathContext) : string,
3538
}
3639

0 commit comments

Comments
 (0)