Angular Modernizer
    Preparing search index...

    metadata of a DtoDirectInstantiationRule result.

    interface DtoDirectInstantiationMetadata {
        className: string;
        detectionMechanism:
            | "decorator"
            | "classNamePattern"
            | "explicitClassName"
            | "baseClass";
        detectionTier: 1
        | 2;
        typeArguments: string[];
        violationType: "dto-direct-instantiation";
    }
    Index

    Properties

    className: string

    Name of the instantiated class.

    detectionMechanism:
        | "decorator"
        | "classNamePattern"
        | "explicitClassName"
        | "baseClass"

    Criterion that matched.

    detectionTier: 1 | 2

    1 for name-based matches, 2 for matches after import resolution.

    typeArguments: string[]

    Type argument texts of the new expression, e.g. ['UserDto'].

    violationType: "dto-direct-instantiation"

    Fixed discriminator of this violation.