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