Initial Commit
This commit is contained in:
13
node_modules/web-vitals/dist/modules/attribution/onLCP.d.ts
generated
vendored
Normal file
13
node_modules/web-vitals/dist/modules/attribution/onLCP.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { LCPMetricWithAttribution, ReportOpts } from '../types.js';
|
||||
/**
|
||||
* Calculates the [LCP](https://web.dev/articles/lcp) value for the current page and
|
||||
* calls the `callback` function once the value is ready (along with the
|
||||
* relevant `largest-contentful-paint` performance entry used to determine the
|
||||
* value). The reported value is a `DOMHighResTimeStamp`.
|
||||
*
|
||||
* If the `reportAllChanges` configuration option is set to `true`, the
|
||||
* `callback` function will be called any time a new `largest-contentful-paint`
|
||||
* performance entry is dispatched, or once the final value of the metric has
|
||||
* been determined.
|
||||
*/
|
||||
export declare const onLCP: (onReport: (metric: LCPMetricWithAttribution) => void, opts?: ReportOpts) => void;
|
||||
Reference in New Issue
Block a user