Skip to content

Commit 9de3757

Browse files
committed
fix types??
1 parent 8ce1277 commit 9de3757

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/tracing-internal/src/browser/instrument.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { onCLS } from './web-vitals/getCLS';
44
import { onFID } from './web-vitals/getFID';
55
import { onLCP } from './web-vitals/getLCP';
66
import { observe } from './web-vitals/lib/observe';
7-
import type { Metric, PerformanceElementTiming } from './web-vitals/types';
7+
import type { Metric } from './web-vitals/types';
88

99
type 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;
6157
export 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;
7369
export function addPerformanceInstrumentationHandler(
74-
type: 'longtask' | InstrumentHandlerTypePerformanceObserver,
70+
type: 'longtask' | 'element' | InstrumentHandlerTypePerformanceObserver,
7571
callback: (data: { entries: PerformanceEntry[] }) => void,
7672
): CleanupHandlerCallback;
7773
export function addPerformanceInstrumentationHandler(

0 commit comments

Comments
 (0)