@@ -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 ;
@@ -154,7 +154,7 @@ declare namespace InternalFSBinding {
154154 function mkdir ( path : string , mode : number , recursive : false , usePromises : typeof kUsePromises ) : Promise < void > ;
155155
156156 function open ( path : StringOrBuffer , flags : number , mode : number , req : FSReqCallback < number > ) : void ;
157- function open ( path : StringOrBuffer , flags : number , mode : number , req : undefined , ctx : FSSyncContext ) : number ;
157+ function open ( path : StringOrBuffer , flags : number , mode : number ) : number ;
158158
159159 function openFileHandle ( path : StringOrBuffer , flags : number , mode : number , usePromises : typeof kUsePromises ) : Promise < FileHandle > ;
160160
@@ -176,6 +176,8 @@ declare namespace InternalFSBinding {
176176 function readdir ( path : StringOrBuffer , encoding : unknown , withFileTypes : true , usePromises : typeof kUsePromises ) : Promise < [ string [ ] , number [ ] ] > ;
177177 function readdir ( path : StringOrBuffer , encoding : unknown , withFileTypes : false , usePromises : typeof kUsePromises ) : Promise < string [ ] > ;
178178
179+ function readFileUtf8 ( path : StringOrBuffer , flags : number ) : string ;
180+
179181 function readlink ( path : StringOrBuffer , encoding : unknown , req : FSReqCallback < string | Buffer > ) : void ;
180182 function readlink ( path : StringOrBuffer , encoding : unknown , req : undefined , ctx : FSSyncContext ) : string | Buffer ;
181183 function readlink ( path : StringOrBuffer , encoding : unknown , usePromises : typeof kUsePromises ) : Promise < string | Buffer > ;
@@ -273,6 +275,7 @@ export interface FsBinding {
273275 read : typeof InternalFSBinding . read ;
274276 readBuffers : typeof InternalFSBinding . readBuffers ;
275277 readdir : typeof InternalFSBinding . readdir ;
278+ readFileUtf8 : typeof InternalFSBinding . readFileUtf8 ;
276279 readlink : typeof InternalFSBinding . readlink ;
277280 realpath : typeof InternalFSBinding . realpath ;
278281 rename : typeof InternalFSBinding . rename ;
0 commit comments