@@ -109,7 +109,7 @@ declare namespace InternalFSBinding {
109109
110110 function internalModuleReadJSON ( path : string ) : [ ] | [ string , boolean ] ;
111111 function internalModuleStat ( path : string ) : number ;
112-
112+
113113 function lchown ( path : string , uid : number , gid : number , req : FSReqCallback ) : void ;
114114 function lchown ( path : string , uid : number , gid : number , req : undefined , ctx : FSSyncContext ) : void ;
115115 function lchown ( path : string , uid : number , gid : number , usePromises : typeof kUsePromises ) : Promise < void > ;
@@ -198,7 +198,7 @@ declare namespace InternalFSBinding {
198198 function symlink ( target : StringOrBuffer , path : StringOrBuffer , type : number , req : FSReqCallback ) : void ;
199199 function symlink ( target : StringOrBuffer , path : StringOrBuffer , type : number , req : undefined , ctx : FSSyncContext ) : void ;
200200 function symlink ( target : StringOrBuffer , path : StringOrBuffer , type : number , usePromises : typeof kUsePromises ) : Promise < void > ;
201-
201+
202202 function unlink ( path : string , req : FSReqCallback ) : void ;
203203 function unlink ( path : string , req : undefined , ctx : FSSyncContext ) : void ;
204204 function unlink ( path : string , usePromises : typeof kUsePromises ) : Promise < void > ;
@@ -220,7 +220,7 @@ declare namespace InternalFSBinding {
220220 function writeString ( fd : number , value : string , pos : unknown , encoding : unknown , usePromises : typeof kUsePromises ) : Promise < number > ;
221221}
222222
223- declare function InternalBinding ( binding : 'fs' ) : {
223+ export interface FsBinding {
224224 FSReqCallback : typeof InternalFSBinding . FSReqCallback ;
225225
226226 FileHandle : typeof InternalFSBinding . FileHandle ;
@@ -269,4 +269,4 @@ declare function InternalBinding(binding: 'fs'): {
269269 writeBuffer : typeof InternalFSBinding . writeBuffer ;
270270 writeBuffers : typeof InternalFSBinding . writeBuffers ;
271271 writeString : typeof InternalFSBinding . writeString ;
272- } ;
272+ }
0 commit comments