interface TsCheckResult {
    cacheFiles?: {
        [filepath: string]: {
            deleted?: Record<string, unknown>;
            type?: "cache" | "whitelist";
            updated: AnyObject;
        };
    };
    cacheHits?: number;
    diagnosticsCategory: Partial<Record<
        | "Warning"
        | "Error"
        | "Suggestion"
        | "Message", number>>;
    errmsg?: string;
    errorCount?: number;
    errorTSCodes: {
        [code: number]: number;
    };
    failedFilesNum?: number;
    isPassed: boolean;
    passedFilesNum?: number;
    startTime?: number;
    totalDiagnostics: number;
    totalFilesNum?: number;
}

Hierarchy (view full)

Properties

cacheFiles?: {
    [filepath: string]: {
        deleted?: Record<string, unknown>;
        type?: "cache" | "whitelist";
        updated: AnyObject;
    };
}

缓存文件与对应的缓存信息。放在最后汇总并写入文件

cacheHits?: number

缓存命中的数量

diagnosticsCategory: Partial<Record<
    | "Warning"
    | "Error"
    | "Suggestion"
    | "Message", number>>

异常类型数量统计

errmsg?: string

错误信息。如可回调给告警类任务

errorCount?: number

异常信息数(一个文件可能包含多个异常)

errorTSCodes: {
    [code: number]: number;
}
failedFilesNum?: number

失败的文件数

isPassed: boolean

是否检测通过

passedFilesNum?: number

检测通过的文件数

startTime?: number

开始处理时间

totalDiagnostics: number

异常总数

totalFilesNum?: number

处理的(源)文件总数