@@ -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 ) : Promise < void >
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 < void >
23
23
24
24
/**
25
25
* Read directory
@@ -29,18 +29,18 @@ declare module '@isomorphic-git/lightning-fs' {
29
29
* @param options
30
30
* @returns The file list.
31
31
*/
32
- readdir ( filepath : string , options : undefined ) : Promise < string [ ] >
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 | string ) : Promise < void >
35
35
36
- readFile ( filepath : string , options : FS . ReadFileOptions | undefined | string ) : Promise < Uint8Array >
36
+ readFile ( filepath : string , options ? : FS . ReadFileOptions | string ) : Promise < Uint8Array >
37
37
38
38
/**
39
39
* Delete a file
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 < void >
44
44
45
45
/**
46
46
* Rename a file or directory
@@ -54,14 +54,14 @@ declare module '@isomorphic-git/lightning-fs' {
54
54
* @param filepath
55
55
* @param options
56
56
*/
57
- stat ( filepath : string , options : undefined ) : Promise < FS . Stats >
57
+ stat ( filepath : string , options ? : undefined ) : Promise < FS . Stats >
58
58
59
59
/**
60
60
* Like fs.stat except that paths to symlinks return the symlink stats not the file stats of the symlink's target.
61
61
* @param filepath
62
62
* @param options
63
63
*/
64
- lstat ( filepath : string , options : undefined ) : Promise < FS . Stats >
64
+ lstat ( filepath : string , options ? : undefined ) : Promise < FS . Stats >
65
65
66
66
/**
67
67
* Create a symlink at filepath that points to target.
@@ -76,14 +76,14 @@ declare module '@isomorphic-git/lightning-fs' {
76
76
* @param options
77
77
* @returns The link string.
78
78
*/
79
- readlink ( filepath : string , options : undefined ) : Promise < string >
79
+ readlink ( filepath : string , options ? : undefined ) : Promise < string >
80
80
81
81
/**
82
82
* Create or change the stat data for a file backed by HTTP. Size is fetched with a HEAD request. Useful when using an HTTP backend without urlauto set, as then files will only be readable if they have stat data. Note that stat data is made automatically from the file /.superblock.txt if found on the server. /.superblock.txt can be generated or updated with the included [standalone script](https://github.com/isomorphic-git/lightning-fs/blob/main/src/superblocktxt.js).
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 ) : Promise < void >
87
87
88
88
/**
89
89
* @param filepath
0 commit comments