@@ -4,7 +4,7 @@ import { onCLS } from './web-vitals/getCLS';
44import { onFID } from './web-vitals/getFID' ;
55import { onLCP } from './web-vitals/getLCP' ;
66import { observe } from './web-vitals/lib/observe' ;
7- import type { Metric , PerformanceElementTiming } from './web-vitals/types' ;
7+ import type { Metric } from './web-vitals/types' ;
88
99type InstrumentHandlerTypePerformanceObserver = 'longtask' | 'event' | 'element' | 'navigation' | 'paint' | 'resource' ;
1010
@@ -54,10 +54,6 @@ export function addPerformanceInstrumentationHandler(
5454 type : 'event' ,
5555 callback : ( data : { entries : PerformanceEventTiming [ ] } ) => void ,
5656) : CleanupHandlerCallback ;
57- export function addPerformanceInstrumentationHandler (
58- type : 'element' ,
59- callback : ( data : { entries : PerformanceElementTiming [ ] } ) => void ,
60- ) : CleanupHandlerCallback ;
6157export function addPerformanceInstrumentationHandler (
6258 type : 'navigation' ,
6359 callback : ( data : { entries : PerformanceNavigationTiming [ ] } ) => void ,
@@ -71,7 +67,7 @@ export function addPerformanceInstrumentationHandler(
7167 callback : ( data : { entries : PerformanceResourceTiming [ ] } ) => void ,
7268) : CleanupHandlerCallback ;
7369export function addPerformanceInstrumentationHandler (
74- type : 'longtask' | InstrumentHandlerTypePerformanceObserver ,
70+ type : 'longtask' | 'element' | InstrumentHandlerTypePerformanceObserver ,
7571 callback : ( data : { entries : PerformanceEntry [ ] } ) => void ,
7672) : CleanupHandlerCallback ;
7773export function addPerformanceInstrumentationHandler (
0 commit comments