Angular Modernizer
    Preparing search index...

    Validation result.

    interface ValidateBeforeTransformResult {
        duration: number;
        issues: {
            column?: number;
            details?: string;
            filePath?: string;
            line?: number;
            message: string;
            severity: "info" | "error" | "warning";
            type: "type" | "dependency" | "syntax" | "schema";
        }[];
        metadata: {
            dependencyValidation: boolean;
            filePath: string;
            schema?: Record<string, unknown>;
            schemaValidation: boolean;
            syntaxValidation: boolean;
            typeValidation: boolean;
        };
        summary: string;
        valid: boolean;
    }
    Index

    Properties

    duration: number

    Validation duration in milliseconds.

    issues: {
        column?: number;
        details?: string;
        filePath?: string;
        line?: number;
        message: string;
        severity: "info" | "error" | "warning";
        type: "type" | "dependency" | "syntax" | "schema";
    }[]

    Validation issues found.

    Type Declaration

    • Optionalcolumn?: number

      Column of the issue.

    • Optionaldetails?: string

      Additional details of the issue.

    • OptionalfilePath?: string

      File the issue was found in.

    • Optionalline?: number

      Line of the issue (1-based).

    • message: string

      Issue description.

    • severity: "info" | "error" | "warning"

      Severity; only errors make the file not valid.

    • type: "type" | "dependency" | "syntax" | "schema"

      Check that reported the issue.

    metadata: {
        dependencyValidation: boolean;
        filePath: string;
        schema?: Record<string, unknown>;
        schemaValidation: boolean;
        syntaxValidation: boolean;
        typeValidation: boolean;
    }

    Metadata about validation.

    Type Declaration

    • dependencyValidation: boolean

      Whether dependency validation ran.

    • filePath: string

      Validated file.

    • Optionalschema?: Record<string, unknown>

      Schema used for schema validation.

    • schemaValidation: boolean

      Whether schema validation ran.

    • syntaxValidation: boolean

      Whether syntax validation ran.

    • typeValidation: boolean

      Whether type validation ran.

    summary: string

    Short text: verdict, issue counts per severity, and the first issues.

    valid: boolean

    Whether validation passed (no errors).