Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
17 lines
744 B
Plaintext
17 lines
744 B
Plaintext
import type { Client } from '@sentry/core';
|
|
import type { WebVitalReportEvent } from './utils';
|
|
/**
|
|
* Starts tracking the Cumulative Layout Shift on the current page and collects the value once
|
|
*
|
|
* - the page visibility is hidden
|
|
* - a navigation span is started (to stop CLS measurement for SPA soft navigations)
|
|
*
|
|
* Once either of these events triggers, the CLS value is sent as a standalone span and we stop
|
|
* measuring CLS.
|
|
*/
|
|
export declare function trackClsAsStandaloneSpan(client: Client): void;
|
|
/**
|
|
* Exported only for testing!
|
|
*/
|
|
export declare function _sendStandaloneClsSpan(clsValue: number, entry: LayoutShift | undefined, pageloadSpanId: string, reportEvent: WebVitalReportEvent): void;
|
|
//# sourceMappingURL=cls.d.ts.map |