UNPKG

web-vitals

Version:

Easily measure performance metrics in JavaScript

7 lines (6 loc) 373 B
import { MetricType, MetricRatingThresholds } from '../types.js'; export declare const bindReporter: <MetricName extends MetricType["name"]>(callback: (metric: Extract<MetricType, { name: MetricName; }>) => void, metric: Extract<MetricType, { name: MetricName; }>, thresholds: MetricRatingThresholds, reportAllChanges?: boolean) => (forceReport?: boolean) => void;