Angular Modernizer
    Preparing search index...

    Interface StyleDetectionResult

    Style convention detection results with raw counts

    interface StyleDetectionResult {
        changeDetectionCounts: {
            default: number;
            onPush: number;
            total: number;
        };
        confidence: number;
        diCounts: {
            constructorInjection: number;
            injectFunction: number;
            total: number;
        };
        filesAnalyzed: number;
        moduleStyleCounts: { ngModule: number; standalone: number; total: number };
        rxjsCounts: {
            behaviorSubject: number;
            observable: number;
            replaySubject: number;
            signal: number;
            subject: number;
            total: number;
        };
        stateManagementCounts: {
            akita: number;
            custom: number;
            ngrx: number;
            ngxs: number;
        };
        styleProfile: StyleProfile;
    }
    Index

    Properties

    changeDetectionCounts: { default: number; onPush: number; total: number }

    Raw counts for change detection

    Type Declaration

    • default: number

      Components without OnPush.

    • onPush: number

      Components with OnPush change detection.

    • total: number

      All components.

    confidence: number

    Detection confidence (0.0 - 1.0)

    diCounts: {
        constructorInjection: number;
        injectFunction: number;
        total: number;
    }

    Raw counts for DI patterns

    Type Declaration

    • constructorInjection: number

      Constructor parameters of classes that use constructor injection.

    • injectFunction: number

      inject() calls.

    • total: number

      Sum of both counts.

    filesAnalyzed: number

    Files analyzed

    moduleStyleCounts: { ngModule: number; standalone: number; total: number }

    Raw counts for module style

    Type Declaration

    • ngModule: number

      Components, directives and pipes without standalone: true.

    • standalone: number

      Components, directives and pipes with standalone: true.

    • total: number

      All components, directives and pipes.

    rxjsCounts: {
        behaviorSubject: number;
        observable: number;
        replaySubject: number;
        signal: number;
        subject: number;
        total: number;
    }

    Raw counts for RxJS patterns

    Type Declaration

    • behaviorSubject: number

      Text matches of BehaviorSubject.

    • observable: number

      Text matches of Observable<.

    • replaySubject: number

      Text matches of ReplaySubject.

    • signal: number

      Calls of signal(), computed() and effect().

    • subject: number

      Text matches of plain Subject.

    • total: number

      Sum of all RxJS and signal counts.

    stateManagementCounts: {
        akita: number;
        custom: number;
        ngrx: number;
        ngxs: number;
    }

    Raw counts for state management

    Type Declaration

    • akita: number

      Imports from Akita packages.

    • custom: number

      *State or *Store classes in files that use BehaviorSubject.

    • ngrx: number

      Imports from @ngrx packages.

    • ngxs: number

      Imports from @ngxs packages.

    styleProfile: StyleProfile

    The detected style profile