diff --git a/packages/replay-internal/src/types/performance.ts b/packages/replay-internal/src/types/performance.ts index 7a60e51684f3..b3dcab0e7dd7 100644 --- a/packages/replay-internal/src/types/performance.ts +++ b/packages/replay-internal/src/types/performance.ts @@ -114,7 +114,7 @@ export interface WebVitalData { /** * The layout shifts of a CLS metric */ - attributions?: { value: number; sources?: number[] }[]; + attributions?: { value: number; nodeIds?: number[] }[]; } /** diff --git a/packages/replay-internal/src/util/createPerformanceEntries.ts b/packages/replay-internal/src/util/createPerformanceEntries.ts index 830f878dc8ea..0c22ba73163a 100644 --- a/packages/replay-internal/src/util/createPerformanceEntries.ts +++ b/packages/replay-internal/src/util/createPerformanceEntries.ts @@ -198,7 +198,7 @@ export function getLargestContentfulPaint(metric: Metric): ReplayPerformanceEntr return getWebVital(metric, 'largest-contentful-paint', node); } -function isLayoutShift(entry: PerformanceEntry | LayoutShift): entry is LayoutShift { +function isLayoutShift(entry: PerformanceEntry): entry is LayoutShift { return (entry as LayoutShift).sources !== undefined; }