@codechecks/lighthouse-keeper
Version:
Keep an eye on Google Lighthouse score changes
16 lines (15 loc) • 515 B
TypeScript
import { LighthouseReport, LighthouseAudit } from "./lighthouse/types";
export interface MetricComparison {
name: string;
key: string;
value: number;
diff: number;
}
export declare type FailedMetricComparison = MetricComparison & {
minScore: number;
};
export declare type ReportComparison = {
metricsComparison: MetricComparison[];
failedAudits: LighthouseAudit[];
};
export declare function compareReports(base: LighthouseReport | undefined, head: LighthouseReport): ReportComparison;