@@ -109,7 +109,7 @@ declare namespace InternalFSBinding {
109
109
110
110
function internalModuleReadJSON ( path : string ) : [ ] | [ string , boolean ] ;
111
111
function internalModuleStat ( path : string ) : number ;
112
-
112
+
113
113
function lchown ( path : string , uid : number , gid : number , req : FSReqCallback ) : void ;
114
114
function lchown ( path : string , uid : number , gid : number , req : undefined , ctx : FSSyncContext ) : void ;
115
115
function lchown ( path : string , uid : number , gid : number , usePromises : typeof kUsePromises ) : Promise < void > ;
@@ -198,7 +198,7 @@ declare namespace InternalFSBinding {
198
198
function symlink ( target : StringOrBuffer , path : StringOrBuffer , type : number , req : FSReqCallback ) : void ;
199
199
function symlink ( target : StringOrBuffer , path : StringOrBuffer , type : number , req : undefined , ctx : FSSyncContext ) : void ;
200
200
function symlink ( target : StringOrBuffer , path : StringOrBuffer , type : number , usePromises : typeof kUsePromises ) : Promise < void > ;
201
-
201
+
202
202
function unlink ( path : string , req : FSReqCallback ) : void ;
203
203
function unlink ( path : string , req : undefined , ctx : FSSyncContext ) : void ;
204
204
function unlink ( path : string , usePromises : typeof kUsePromises ) : Promise < void > ;
@@ -220,7 +220,7 @@ declare namespace InternalFSBinding {
220
220
function writeString ( fd : number , value : string , pos : unknown , encoding : unknown , usePromises : typeof kUsePromises ) : Promise < number > ;
221
221
}
222
222
223
- declare function InternalBinding ( binding : 'fs' ) : {
223
+ export interface FsBinding {
224
224
FSReqCallback : typeof InternalFSBinding . FSReqCallback ;
225
225
226
226
FileHandle : typeof InternalFSBinding . FileHandle ;
@@ -269,4 +269,4 @@ declare function InternalBinding(binding: 'fs'): {
269
269
writeBuffer : typeof InternalFSBinding . writeBuffer ;
270
270
writeBuffers : typeof InternalFSBinding . writeBuffers ;
271
271
writeString : typeof InternalFSBinding . writeString ;
272
- } ;
272
+ }
0 commit comments