@@ -57,7 +57,7 @@ declare namespace InternalFSBinding {
57
57
}
58
58
59
59
function access ( path : StringOrBuffer , mode : number , req : FSReqCallback ) : void ;
60
- function access ( path : StringOrBuffer , mode : number , req : undefined , ctx : FSSyncContext ) : void ;
60
+ function access ( path : StringOrBuffer , mode : number ) : void ;
61
61
function access ( path : StringOrBuffer , mode : number , usePromises : typeof kUsePromises ) : Promise < void > ;
62
62
63
63
function chmod ( path : string , mode : number , req : FSReqCallback ) : void ;
@@ -70,7 +70,7 @@ declare namespace InternalFSBinding {
70
70
function chown ( path : string , uid : number , gid : number ) : void ;
71
71
72
72
function close ( fd : number , req : FSReqCallback ) : void ;
73
- function close ( fd : number , req : undefined , ctx : FSSyncContext ) : void ;
73
+ function close ( fd : number ) : void ;
74
74
75
75
function copyFile ( src : StringOrBuffer , dest : StringOrBuffer , mode : number , req : FSReqCallback ) : void ;
76
76
function copyFile ( src : StringOrBuffer , dest : StringOrBuffer , mode : number , req : undefined , ctx : FSSyncContext ) : void ;
@@ -153,7 +153,7 @@ declare namespace InternalFSBinding {
153
153
function mkdir ( path : string , mode : number , recursive : false , usePromises : typeof kUsePromises ) : Promise < void > ;
154
154
155
155
function open ( path : StringOrBuffer , flags : number , mode : number , req : FSReqCallback < number > ) : void ;
156
- function open ( path : StringOrBuffer , flags : number , mode : number , req : undefined , ctx : FSSyncContext ) : number ;
156
+ function open ( path : StringOrBuffer , flags : number , mode : number ) : number ;
157
157
158
158
function openFileHandle ( path : StringOrBuffer , flags : number , mode : number , usePromises : typeof kUsePromises ) : Promise < FileHandle > ;
159
159
@@ -175,6 +175,8 @@ declare namespace InternalFSBinding {
175
175
function readdir ( path : StringOrBuffer , encoding : unknown , withFileTypes : true , usePromises : typeof kUsePromises ) : Promise < [ string [ ] , number [ ] ] > ;
176
176
function readdir ( path : StringOrBuffer , encoding : unknown , withFileTypes : false , usePromises : typeof kUsePromises ) : Promise < string [ ] > ;
177
177
178
+ function readFileUtf8 ( path : StringOrBuffer , flags : number ) : string ;
179
+
178
180
function readlink ( path : StringOrBuffer , encoding : unknown , req : FSReqCallback < string | Buffer > ) : void ;
179
181
function readlink ( path : StringOrBuffer , encoding : unknown , req : undefined , ctx : FSSyncContext ) : string | Buffer ;
180
182
function readlink ( path : StringOrBuffer , encoding : unknown , usePromises : typeof kUsePromises ) : Promise < string | Buffer > ;
@@ -272,6 +274,7 @@ export interface FsBinding {
272
274
read : typeof InternalFSBinding . read ;
273
275
readBuffers : typeof InternalFSBinding . readBuffers ;
274
276
readdir : typeof InternalFSBinding . readdir ;
277
+ readFileUtf8 : typeof InternalFSBinding . readFileUtf8 ;
275
278
readlink : typeof InternalFSBinding . readlink ;
276
279
realpath : typeof InternalFSBinding . realpath ;
277
280
rename : typeof InternalFSBinding . rename ;
0 commit comments