@@ -12,14 +12,14 @@ declare module '@isomorphic-git/lightning-fs' {
12
12
* @param filepath
13
13
* @param options
14
14
*/
15
- mkdir ( filepath : string , options : FS . MKDirOptions | undefined ) : Promise < void >
15
+ mkdir ( filepath : string , options : FS . MKDirOptions | undefined ) : Promise < never >
16
16
17
17
/**
18
18
* Remove directory
19
19
* @param filepath
20
20
* @param options
21
21
*/
22
- rmdir ( filepath : string , options : undefined ) : Promise < void >
22
+ rmdir ( filepath : string , options : undefined ) : Promise < never >
23
23
24
24
/**
25
25
* Read directory
@@ -31,7 +31,7 @@ declare module '@isomorphic-git/lightning-fs' {
31
31
*/
32
32
readdir ( filepath : string , options : undefined ) : Promise < string [ ] >
33
33
34
- writeFile ( filepath : string , data : Uint8Array | string , options : FS . WriteFileOptions | undefined | string ) : Promise < void >
34
+ writeFile ( filepath : string , data : Uint8Array | string , options : FS . WriteFileOptions | undefined | string ) : Promise < never >
35
35
36
36
readFile ( filepath : string , options : FS . ReadFileOptions | undefined | string ) : Promise < Uint8Array >
37
37
@@ -40,14 +40,14 @@ declare module '@isomorphic-git/lightning-fs' {
40
40
* @param filepath
41
41
* @param options
42
42
*/
43
- unlink ( filepath : string , options : undefined ) : Promise < void >
43
+ unlink ( filepath : string , options : undefined ) : Promise < never >
44
44
45
45
/**
46
46
* Rename a file or directory
47
47
* @param oldFilepath
48
48
* @param newFilepath
49
49
*/
50
- rename ( oldFilepath : string , newFilepath : string ) : Promise < void >
50
+ rename ( oldFilepath : string , newFilepath : string ) : Promise < never >
51
51
52
52
/**
53
53
* The result is a Stat object similar to the one used by Node but with fewer and slightly different properties and methods.
@@ -68,7 +68,7 @@ declare module '@isomorphic-git/lightning-fs' {
68
68
* @param target
69
69
* @param filepath
70
70
*/
71
- symlink ( target : string , filepath : string ) : Promise < void >
71
+ symlink ( target : string , filepath : string ) : Promise < never >
72
72
73
73
/**
74
74
* Read the target of a symlink.
@@ -83,7 +83,7 @@ declare module '@isomorphic-git/lightning-fs' {
83
83
* @param filepath
84
84
* @param options
85
85
*/
86
- backFile ( filepath : string , options : FS . BackFileOptions | undefined ) : Promise < void >
86
+ backFile ( filepath : string , options : FS . BackFileOptions | undefined ) : Promise < never >
87
87
88
88
/**
89
89
* @param filepath
@@ -288,3 +288,15 @@ declare module '@isomorphic-git/lightning-fs' {
288
288
}
289
289
export default FS
290
290
}
291
+
292
+ declare module '@isomorphic-git/lightning-fs/src/path' {
293
+ namespace Path {
294
+ function join ( ...parts : string [ ] ) : string
295
+ function normalize ( path : string ) : string
296
+ function split ( path : string ) : string [ ]
297
+ function basename ( path : string ) : string
298
+ function dirname ( path : string ) : string
299
+ function resolve ( ...paths : string [ ] ) : string
300
+ }
301
+ export default Path
302
+ }
0 commit comments