Angular Modernizer
    Preparing search index...

    Interface InstantiationDetectionConfig

    Configuration for instantiation-detection rules (angular:component-wrapper-instantiation, angular:dto-direct-instantiation).

    All properties are string arrays — RegExp conversion is a rule-level concern. Every property is optional to support partial overrides.

    interface InstantiationDetectionConfig {
        baseClassNames: string[];
        classNamePatterns: string[];
        decoratorNames: string[];
        excludedClassNames?: string[];
        explicitClassNames: string[];
    }
    Index

    Properties

    baseClassNames: string[]

    Base class names — any class extending one of these is considered a target.

    ['BaseComponent', 'AbstractDto']
    
    classNamePatterns: string[]

    Regex patterns (as strings) matched against class names to identify targets.

    ['.*WrapperComponent$', '.*ContainerComponent$']
    
    decoratorNames: string[]

    Decorator names — any class decorated with one of these is considered a target.

    ['Component', 'PageComponent']
    
    excludedClassNames?: string[]

    Class names never reported, even when they match a pattern. Replaces the rule's default exclusion list entirely.

    ['HttpResponse', 'HttpErrorResponse']
    
    explicitClassNames: string[]

    Explicit class names that are always considered targets, regardless of pattern matching.

    ['MySpecialComponent', 'LegacyWrapper']