You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.1 KiB
27 lines
1.1 KiB
|
2 months ago
|
import { MetricType, MetricRatingThresholds } from '../types.js';
|
||
|
|
export declare const bindReporter: <MetricName extends "CLS" | "FCP" | "FID" | "INP" | "LCP" | "TTFB">(callback: (metric: Extract<import("../types.js").CLSMetric, {
|
||
|
|
name: MetricName;
|
||
|
|
}> | Extract<import("../types.js").FCPMetric, {
|
||
|
|
name: MetricName;
|
||
|
|
}> | Extract<import("../types.js").FIDMetric, {
|
||
|
|
name: MetricName;
|
||
|
|
}> | Extract<import("../types.js").INPMetric, {
|
||
|
|
name: MetricName;
|
||
|
|
}> | Extract<import("../types.js").LCPMetric, {
|
||
|
|
name: MetricName;
|
||
|
|
}> | Extract<import("../types.js").TTFBMetric, {
|
||
|
|
name: MetricName;
|
||
|
|
}>) => void, metric: Extract<import("../types.js").CLSMetric, {
|
||
|
|
name: MetricName;
|
||
|
|
}> | Extract<import("../types.js").FCPMetric, {
|
||
|
|
name: MetricName;
|
||
|
|
}> | Extract<import("../types.js").FIDMetric, {
|
||
|
|
name: MetricName;
|
||
|
|
}> | Extract<import("../types.js").INPMetric, {
|
||
|
|
name: MetricName;
|
||
|
|
}> | Extract<import("../types.js").LCPMetric, {
|
||
|
|
name: MetricName;
|
||
|
|
}> | Extract<import("../types.js").TTFBMetric, {
|
||
|
|
name: MetricName;
|
||
|
|
}>, thresholds: MetricRatingThresholds, reportAllChanges?: boolean) => (forceReport?: boolean) => void;
|