File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ declare namespace dependencyTree {
2
+ interface TreeInnerNode {
3
+ [ parent : string ] : TreeInnerNode | string ;
4
+ }
5
+ type Tree = TreeInnerNode | string ;
6
+
7
+ interface Options {
8
+ filename : string ;
9
+ directory : string ;
10
+ visited ?: Tree ;
11
+ nonExistent ?: string [ ] ;
12
+ isListForm ?: boolean ;
13
+ requireConfig ?: string ;
14
+ webpackConfig ?: string ;
15
+ nodeModulesConfig ?: any ;
16
+ detectiveConfig ?: any ;
17
+ tsConfig ?: string | Record < string , any > ;
18
+ noTypeDefinitions ?: boolean ;
19
+ filter ?: ( path : string ) => boolean ;
20
+ }
21
+
22
+ interface Config extends Options {
23
+ clone : ( ) => Config ;
24
+ }
25
+
26
+ function toList ( options : Options ) : string [ ] ;
27
+ function _getDependencies ( config : Config ) : string [ ] ;
28
+ }
29
+
30
+ declare function dependencyTree ( options : dependencyTree . Options ) : dependencyTree . Tree ;
31
+
32
+ export = dependencyTree ;
Original file line number Diff line number Diff line change 3
3
"version" : " 8.0.0" ,
4
4
"description" : " Get the dependency tree of a module" ,
5
5
"main" : " index.js" ,
6
+ "types" : " index.d.ts" ,
6
7
"scripts" : {
7
8
"test" : " jscs index.js test/test.js && ./node_modules/.bin/mocha --require esm test/test.js"
8
9
},
You can’t perform that action at this time.
0 commit comments