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 33 "version" : " 8.0.0" ,
44 "description" : " Get the dependency tree of a module" ,
55 "main" : " index.js" ,
6+ "types" : " index.d.ts" ,
67 "scripts" : {
78 "test" : " jscs index.js test/test.js && ./node_modules/.bin/mocha --require esm test/test.js"
89 },
You can’t perform that action at this time.
0 commit comments