@@ -4,7 +4,7 @@ import { onCLS } from './web-vitals/getCLS';
4
4
import { onFID } from './web-vitals/getFID' ;
5
5
import { onLCP } from './web-vitals/getLCP' ;
6
6
import { observe } from './web-vitals/lib/observe' ;
7
- import type { Metric , PerformanceElementTiming } from './web-vitals/types' ;
7
+ import type { Metric } from './web-vitals/types' ;
8
8
9
9
type InstrumentHandlerTypePerformanceObserver = 'longtask' | 'event' | 'element' | 'navigation' | 'paint' | 'resource' ;
10
10
@@ -54,10 +54,6 @@ export function addPerformanceInstrumentationHandler(
54
54
type : 'event' ,
55
55
callback : ( data : { entries : PerformanceEventTiming [ ] } ) => void ,
56
56
) : CleanupHandlerCallback ;
57
- export function addPerformanceInstrumentationHandler (
58
- type : 'element' ,
59
- callback : ( data : { entries : PerformanceElementTiming [ ] } ) => void ,
60
- ) : CleanupHandlerCallback ;
61
57
export function addPerformanceInstrumentationHandler (
62
58
type : 'navigation' ,
63
59
callback : ( data : { entries : PerformanceNavigationTiming [ ] } ) => void ,
@@ -71,7 +67,7 @@ export function addPerformanceInstrumentationHandler(
71
67
callback : ( data : { entries : PerformanceResourceTiming [ ] } ) => void ,
72
68
) : CleanupHandlerCallback ;
73
69
export function addPerformanceInstrumentationHandler (
74
- type : 'longtask' | InstrumentHandlerTypePerformanceObserver ,
70
+ type : 'longtask' | 'element' | InstrumentHandlerTypePerformanceObserver ,
75
71
callback : ( data : { entries : PerformanceEntry [ ] } ) => void ,
76
72
) : CleanupHandlerCallback ;
77
73
export function addPerformanceInstrumentationHandler (
0 commit comments