@@ -57,7 +57,7 @@ declare namespace InternalFSBinding {
5757 }
5858
5959 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 ;
6161 function access ( path : StringOrBuffer , mode : number , usePromises : typeof kUsePromises ) : Promise < void > ;
6262
6363 function chmod ( path : string , mode : number , req : FSReqCallback ) : void ;
@@ -70,7 +70,7 @@ declare namespace InternalFSBinding {
7070 function chown ( path : string , uid : number , gid : number ) : void ;
7171
7272 function close ( fd : number , req : FSReqCallback ) : void ;
73- function close ( fd : number , req : undefined , ctx : FSSyncContext ) : void ;
73+ function close ( fd : number ) : void ;
7474
7575 function copyFile ( src : StringOrBuffer , dest : StringOrBuffer , mode : number , req : FSReqCallback ) : void ;
7676 function copyFile ( src : StringOrBuffer , dest : StringOrBuffer , mode : number , req : undefined , ctx : FSSyncContext ) : void ;
@@ -153,7 +153,7 @@ declare namespace InternalFSBinding {
153153 function mkdir ( path : string , mode : number , recursive : false , usePromises : typeof kUsePromises ) : Promise < void > ;
154154
155155 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 ;
157157
158158 function openFileHandle ( path : StringOrBuffer , flags : number , mode : number , usePromises : typeof kUsePromises ) : Promise < FileHandle > ;
159159
@@ -175,6 +175,8 @@ declare namespace InternalFSBinding {
175175 function readdir ( path : StringOrBuffer , encoding : unknown , withFileTypes : true , usePromises : typeof kUsePromises ) : Promise < [ string [ ] , number [ ] ] > ;
176176 function readdir ( path : StringOrBuffer , encoding : unknown , withFileTypes : false , usePromises : typeof kUsePromises ) : Promise < string [ ] > ;
177177
178+ function readFileUtf8 ( path : StringOrBuffer , flags : number ) : string ;
179+
178180 function readlink ( path : StringOrBuffer , encoding : unknown , req : FSReqCallback < string | Buffer > ) : void ;
179181 function readlink ( path : StringOrBuffer , encoding : unknown , req : undefined , ctx : FSSyncContext ) : string | Buffer ;
180182 function readlink ( path : StringOrBuffer , encoding : unknown , usePromises : typeof kUsePromises ) : Promise < string | Buffer > ;
@@ -272,6 +274,7 @@ export interface FsBinding {
272274 read : typeof InternalFSBinding . read ;
273275 readBuffers : typeof InternalFSBinding . readBuffers ;
274276 readdir : typeof InternalFSBinding . readdir ;
277+ readFileUtf8 : typeof InternalFSBinding . readFileUtf8 ;
275278 readlink : typeof InternalFSBinding . readlink ;
276279 realpath : typeof InternalFSBinding . realpath ;
277280 rename : typeof InternalFSBinding . rename ;
0 commit comments