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