Angular Modernizer
    Preparing search index...

    Interface TransformResultWithMetadata

    Transform result interface (extends the core TransformResult). These fields may be present in the result or metadata.

    interface TransformResultWithMetadata {
        changeCount?: number;
        message: string;
        metadata?: {
            duration?: number;
            syntaxErrors?: string[];
            [key: string]: unknown;
        };
        modified: boolean;
        ruleId: string;
    }
    Index

    Properties

    changeCount?: number

    Number of changes; 0 or missing with modified set counts as a silent failure.

    message: string

    Rule message.

    metadata?: {
        duration?: number;
        syntaxErrors?: string[];
        [key: string]: unknown;
    }

    Extra data read by the validator.

    Type Declaration

    • [key: string]: unknown
    • Optionalduration?: number

      Transform duration in milliseconds; above 30000 is flagged as slow.

    • OptionalsyntaxErrors?: string[]

      Syntax errors left in the file after the transform.

    modified: boolean

    Whether the rule reports a modification.

    ruleId: string

    Rule that produced the result.