File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -35,23 +35,30 @@ declare function clearInterval(intervalId: NodeJS.Timer): void;
35
35
declare function setImmediate ( callback : ( ...args : any [ ] ) => void , ...args : any [ ] ) : any ;
36
36
declare function clearImmediate ( immediateId : any ) : void ;
37
37
38
- declare var require : {
38
+ interface NodeRequireFunction {
39
39
( id : string ) : any ;
40
+ }
41
+
42
+ interface NodeRequire extends NodeRequireFunction {
40
43
resolve ( id :string ) : string ;
41
44
cache : any ;
42
45
extensions : any ;
43
46
main : any ;
44
- } ;
47
+ }
45
48
46
- declare var module : {
49
+ declare var require : NodeRequire ;
50
+
51
+ interface NodeModule {
47
52
exports : any ;
48
- require ( id : string ) : any ;
53
+ require : NodeRequireFunction ;
49
54
id : string ;
50
55
filename : string ;
51
56
loaded : boolean ;
52
57
parent : any ;
53
58
children : any [ ] ;
54
- } ;
59
+ }
60
+
61
+ declare var module : NodeModule ;
55
62
56
63
// Same as module.exports
57
64
declare var exports : any ;
You can’t perform that action at this time.
0 commit comments