Skip to content

Commit e0d238d

Browse files
committed
remove FooNavigator
1 parent b41c104 commit e0d238d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/tracing/src/browser/metrics.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import { NavigatorDeviceMemory, NavigatorNetworkInformation } from './web-vitals
1212

1313
const global = getGlobalObject<Window>();
1414

15-
type FooNavigator = Navigator & NavigatorNetworkInformation & NavigatorDeviceMemory;
16-
1715
type BrowserContext = {
1816
effectiveConnectionType?: string;
1917
deviceMemory?: number;
@@ -144,7 +142,7 @@ export class MetricsInstrumentation {
144142
* Capture the information of the user agent.
145143
*/
146144
private _trackNavigator(): void {
147-
const navigator = window.navigator as null | FooNavigator;
145+
const navigator = window.navigator as null | (Navigator & NavigatorNetworkInformation & NavigatorDeviceMemory);
148146

149147
// track network connectivity
150148

0 commit comments

Comments
 (0)