UNPKG

986 BTypeScriptView Raw
1import { DependencyType } from "./shared-types";
2
3export interface IDoNotFollowType {
4 /**
5 * a regular expression for modules to include, but not follow further
6 */
7 path?: string;
8 /**
9 * an array of dependency types to include, but not follow further
10 */
11 dependencyTypes?: DependencyType[];
12}
13
14export interface IExcludeType {
15 /**
16 * a regular expression for modules to exclude
17 */
18 path?: string;
19 /**
20 * a boolean indicating whether or not to exclude dynamic dependencies
21 * leave out to match both
22 */
23 dynamic?: boolean;
24}
25
26export interface IIncludeOnlyType {
27 /**
28 * regular expression describing which dependencies the function
29 * should cruise - anything not matching this will be skipped
30 */
31 path?: string;
32}
33
34export interface IFocusType {
35 /**
36 * dependency-cruiser will include modules matching this regular expression
37 * in its output, as well as their neighbours (direct dependencies and
38 * dependents)
39 */
40 path?: string;
41}