File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ var tree = dependencyTree({
26
26
entry: ' module'
27
27
}, // optional
28
28
filter : path => path .indexOf (' node_modules' ) === - 1 , // optional
29
- nonExistent: [] // optional
29
+ nonExistent: [], // optional
30
+ noTypeDefinitions: false // optional
30
31
});
31
32
32
33
// Returns a post-order traversal (list form) of the tree with duplicate sub-trees pruned.
@@ -51,6 +52,7 @@ var list = dependencyTree.toList({
51
52
* ` detective ` : object with configuration specific to detectives used to find dependencies of a file
52
53
- for example ` detective.amd.skipLazyLoaded: true ` tells the AMD detective to omit inner requires
53
54
- See [ precinct's usage docs] ( https://github.com/dependents/node-precinct#usage ) for the list of module types you can pass options to.
55
+ * ` noTypeDefinitions ` : For TypeScript imports, whether to resolve to ` *.js ` instead of ` *.d.ts ` .
54
56
55
57
#### Format Details
56
58
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const Config = require('./lib/Config');
22
22
* @param {Array } [options.nonExistent] - List of partials that do not exist
23
23
* @param {Boolean } [options.isListForm=false]
24
24
* @param {String|Object } [options.tsConfig] Path to a typescript config (or a preloaded one).
25
+ * @param {Boolean } [options.noTypeDefinitions] For TypeScript imports, whether to resolve to `*.js` instead of `*.d.ts`.
25
26
* @return {Object }
26
27
*/
27
28
module . exports = function ( options ) {
You can’t perform that action at this time.
0 commit comments