Skip to main content

TraceDependencyOutput

Type Alias TraceDependencyOutput 

Source
pub type TraceDependencyOutput = DependencyTrace;
Expand description

Concrete dependency trace output returned by typed programmatic runs.

Aliased Type§

pub struct TraceDependencyOutput {
    pub package_name: String,
    pub imported_by: Vec<PathBuf>,
    pub type_only_imported_by: Vec<PathBuf>,
    pub used_in_scripts: bool,
    pub is_used: bool,
    pub import_count: usize,
}

Fields§

§package_name: String

The dependency name being traced.

§imported_by: Vec<PathBuf>

Files that import this dependency.

§type_only_imported_by: Vec<PathBuf>

Files that import this dependency with type-only imports.

§used_in_scripts: bool

Whether the dependency is invoked from package.json scripts or CI configs.

§is_used: bool

Whether the dependency is used at all.

§import_count: usize

Total import count.