@@ -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 ;
@@ -154,7 +154,7 @@ declare namespace InternalFSBinding {
154
154
function mkdir ( path : string , mode : number , recursive : false , usePromises : typeof kUsePromises ) : Promise < void > ;
155
155
156
156
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 ;
158
158
159
159
function openFileHandle ( path : StringOrBuffer , flags : number , mode : number , usePromises : typeof kUsePromises ) : Promise < FileHandle > ;
160
160
@@ -176,6 +176,8 @@ declare namespace InternalFSBinding {
176
176
function readdir ( path : StringOrBuffer , encoding : unknown , withFileTypes : true , usePromises : typeof kUsePromises ) : Promise < [ string [ ] , number [ ] ] > ;
177
177
function readdir ( path : StringOrBuffer , encoding : unknown , withFileTypes : false , usePromises : typeof kUsePromises ) : Promise < string [ ] > ;
178
178
179
+ function readFileUtf8 ( path : StringOrBuffer , flags : number ) : string ;
180
+
179
181
function readlink ( path : StringOrBuffer , encoding : unknown , req : FSReqCallback < string | Buffer > ) : void ;
180
182
function readlink ( path : StringOrBuffer , encoding : unknown , req : undefined , ctx : FSSyncContext ) : string | Buffer ;
181
183
function readlink ( path : StringOrBuffer , encoding : unknown , usePromises : typeof kUsePromises ) : Promise < string | Buffer > ;
@@ -273,6 +275,7 @@ export interface FsBinding {
273
275
read : typeof InternalFSBinding . read ;
274
276
readBuffers : typeof InternalFSBinding . readBuffers ;
275
277
readdir : typeof InternalFSBinding . readdir ;
278
+ readFileUtf8 : typeof InternalFSBinding . readFileUtf8 ;
276
279
readlink : typeof InternalFSBinding . readlink ;
277
280
realpath : typeof InternalFSBinding . realpath ;
278
281
rename : typeof InternalFSBinding . rename ;
0 commit comments