Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ [RUM-67] Specialise type files #2845

Merged
merged 21 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { DevtoolsToBackgroundMessage } from '../common/types'
import type { DevtoolsToBackgroundMessage } from '../common/extension.types'
import { EventListeners } from '../common/eventListeners'
import { createLogger } from '../common/logger'

Expand Down
2 changes: 1 addition & 1 deletion developer-extension/src/background/domain/syncRules.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { NetRequestRulesOptions } from '../../common/types'
import type { NetRequestRulesOptions } from '../../common/extension.types'
import { DEV_LOGS_URL, DEV_RUM_SLIM_URL, DEV_RUM_URL } from '../../common/packagesUrlConstants'
import { INTAKE_DOMAINS } from '../../common/intakeDomainConstants'
import { createLogger } from '../../common/logger'
Expand Down
2 changes: 1 addition & 1 deletion developer-extension/src/content-scripts/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Settings } from '../common/types'
import type { Settings } from '../common/extension.types'
import { EventListeners } from '../common/eventListeners'
import { DEV_LOGS_URL, DEV_RUM_URL } from '../common/packagesUrlConstants'
import { SESSION_STORAGE_SETTINGS_KEY } from '../common/sessionKeyConstant'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { BackgroundToDevtoolsMessage, DevtoolsToBackgroundMessage } from '../common/types'
import type { BackgroundToDevtoolsMessage, DevtoolsToBackgroundMessage } from '../common/extension.types'
import { isDisconnectError } from '../common/isDisconnectError'
import { createLogger } from '../common/logger'
import { EventListeners } from '../common/eventListeners'
Expand Down
2 changes: 1 addition & 1 deletion developer-extension/src/panel/components/panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useAutoFlushEvents } from '../hooks/useAutoFlushEvents'
import { useNetworkRules } from '../hooks/useNetworkRules'
import { useSettings } from '../hooks/useSettings'
import { DEFAULT_PANEL_TAB, PanelTabs } from '../../common/panelTabConstants'
import type { Settings } from '../../common/types'
import type { Settings } from '../../common/extension.types'
import { useDebugMode } from '../hooks/useDebugMode'
import { SettingsTab } from './tabs/settingsTab'
import { InfosTab } from './tabs/infosTab'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DevServerStatus, useDevServerStatus } from '../../hooks/useDevServerSta
import { useSettings } from '../../hooks/useSettings'
import { Columns } from '../columns'
import { TabBase } from '../tabBase'
import type { DevBundlesOverride, EventCollectionStrategy } from '../../../common/types'
import type { DevBundlesOverride, EventCollectionStrategy } from '../../../common/extension.types'

export function SettingsTab() {
const devServerStatus = useDevServerStatus()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { EventCollectionStrategy } from '../../../common/types'
import type { EventCollectionStrategy } from '../../../common/extension.types'
import { INTAKE_DOMAINS } from '../../../common/intakeDomainConstants'
import { onBackgroundMessage } from '../../backgroundScriptConnection'
import { isRumViewEvent, type SdkEvent } from '../../sdkEvent'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useRef, useState } from 'react'
import type { SdkEvent } from '../../sdkEvent'
import type { EventCollectionStrategy } from '../../../common/types'
import type { EventCollectionStrategy } from '../../../common/extension.types'
import type { EventFilters } from './eventFilters'
import { DEFAULT_FILTERS, applyEventFilters } from './eventFilters'
import type { EventCollection } from './eventCollection'
Expand Down
2 changes: 1 addition & 1 deletion developer-extension/src/panel/hooks/useNetworkRules.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect } from 'react'
import type { NetRequestRulesOptions } from '../../common/types'
import type { NetRequestRulesOptions } from '../../common/extension.types'
import { sendMessageToBackground } from '../backgroundScriptConnection'

export function useNetworkRules({
Expand Down
2 changes: 1 addition & 1 deletion developer-extension/src/panel/hooks/useSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { SESSION_STORAGE_SETTINGS_KEY } from '../../common/sessionKeyConstant'
import { EventListeners } from '../../common/eventListeners'
import { createLogger } from '../../common/logger'
import { evalInWindow } from '../evalInWindow'
import type { Settings } from '../../common/types'
import type { Settings } from '../../common/extension.types'

const logger = createLogger('useSettings')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { BrowserRecord } from '../../../../packages/rum/src/types'
import { IncrementalSource, RecordType } from '../../../../packages/rum/src/types'
import { IncrementalSource, RecordType } from '@datadog/browser-rum/src/types'
import type { BrowserRecord } from '@datadog/browser-rum/src/types'
import { createLogger } from '../../common/logger'
import { onBackgroundMessage } from '../backgroundScriptConnection'
import type { MessageBridgeUp } from './types'
import { MessageBridgeDownType, MessageBridgeUpLogLevel, MessageBridgeUpType } from './types'
import type { MessageBridgeUp } from './startSessionReplayPlayer.types'
import { MessageBridgeDownType, MessageBridgeUpLogLevel, MessageBridgeUpType } from './startSessionReplayPlayer.types'

const sandboxLogger = createLogger('sandbox')

Expand Down
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 suggestion: sessionReplayPlayer.type.ts should be enough :)‏

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Those types are coming from the Web-UI Session Replay Player. Please keep them as close as
// possible to the original types.

import type { BrowserRecord, RecordType } from '../../../../packages/rum/src/types'
import type { BrowserRecord, RecordType } from '@datadog/browser-rum/src/types'
RomanGaignault marked this conversation as resolved.
Show resolved Hide resolved

export enum MessageBridgeUpType {
READY = 'ready',
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/browser/addEventListener.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { monitor } from '../tools/monitor'
import { getZoneJsOriginalValue } from '../tools/getZoneJsOriginalValue'
import type { CookieStore, CookieStoreEventMap, VisualViewport, VisualViewportEventMap } from './types'
import type { CookieStore, CookieStoreEventMap, VisualViewport, VisualViewportEventMap } from './dom.custom.types'

export type TrustableEvent<E extends Event = Event> = E & { __ddIsTrusted?: boolean }

Expand Down
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 suggestion: browser.types.ts

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙇‍♀️ Sorry, it was like this. I suggested the other way round.

File renamed without changes.
2 changes: 1 addition & 1 deletion packages/core/src/domain/deflate/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './types'
export * from './deflate.types'
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export {
deleteCookie,
resetInitCookies,
} from './browser/cookie'
export { CookieStore, WeakRef, WeakRefConstructor } from './browser/types'
export { CookieStore, WeakRef, WeakRefConstructor } from './browser/dom.custom.types'
export { initXhrObservable, XhrCompleteContext, XhrStartContext } from './browser/xhrObservable'
export {
initFetchObservable,
Expand Down
2 changes: 1 addition & 1 deletion packages/rum/src/domain/record/trackers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export { trackViewEnd } from './trackViewEnd'
export { InputCallback, trackInput } from './trackInput'
export { ScrollCallback } from './trackScroll'
export { trackMutation, MutationCallBack, RumMutationRecord } from './trackMutation'
export { Tracker } from './types'
export { Tracker } from './tracker.types'
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createNewEvent, registerCleanupTask } from '@datadog/browser-core/test'
import type { RumConfiguration } from '@datadog/browser-rum-core'
import { RecordType } from '../../../types'
import { trackFocus, type FocusCallback } from './trackFocus'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

describe('trackFocus', () => {
let focusTracker: Tracker
Expand Down
2 changes: 1 addition & 1 deletion packages/rum/src/domain/record/trackers/trackFocus.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DOM_EVENT, addEventListeners, timeStampNow } from '@datadog/browser-core'
import type { RumConfiguration } from '@datadog/browser-rum-core'
import { RecordType, type FocusRecord } from '../../../types'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

export type FocusCallback = (data: FocusRecord) => void

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { RecordIds } from '../recordIds'
import { initRecordIds } from '../recordIds'
import type { FrustrationCallback } from './trackFrustration'
import { trackFrustration } from './trackFrustration'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

describe('trackFrustration', () => {
const lifeCycle = new LifeCycle()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ActionType, RumEventType, LifeCycleEventType } from '@datadog/browser-r
import type { FrustrationRecord } from '../../../types'
import { RecordType } from '../../../types'
import type { RecordIds } from '../recordIds'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

export type FrustrationCallback = (record: FrustrationRecord) => void

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { IncrementalSource, RecordType } from '../../../types'
import type { InputCallback } from './trackInput'
import { trackInput } from './trackInput'
import { DEFAULT_CONFIGURATION, DEFAULT_SHADOW_ROOT_CONTROLLER } from './trackers.specHelper'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

describe('trackInput', () => {
let inputTracker: Tracker
Expand Down
2 changes: 1 addition & 1 deletion packages/rum/src/domain/record/trackers/trackInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { BrowserIncrementalSnapshotRecord, InputData, InputState } from '..
import { getEventTarget } from '../eventsUtils'
import { getElementInputValue, getSerializedNodeId, hasSerializedNode } from '../serialization'
import { assembleIncrementalSnapshot } from '../assembly'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

export type InputCallback = (incrementalSnapshotRecord: BrowserIncrementalSnapshotRecord) => void

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { IncrementalSource, MediaInteractionType, RecordType } from '../../../ty
import type { InputCallback } from './trackInput'
import { DEFAULT_CONFIGURATION, DEFAULT_SHADOW_ROOT_CONTROLLER } from './trackers.specHelper'
import { trackMediaInteraction } from './trackMediaInteraction'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

describe('trackMediaInteraction', () => {
let mediaInteractionTracker: Tracker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { IncrementalSource, MediaInteractionType } from '../../../types'
import { getEventTarget } from '../eventsUtils'
import { getSerializedNodeId, hasSerializedNode } from '../serialization'
import { assembleIncrementalSnapshot } from '../assembly'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

export type MediaInteractionCallback = (incrementalSnapshotRecord: BrowserIncrementalSnapshotRecord) => void

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { initRecordIds } from '../recordIds'
import type { MouseInteractionCallback } from './trackMouseInteraction'
import { trackMouseInteraction } from './trackMouseInteraction'
import { DEFAULT_CONFIGURATION, DEFAULT_SHADOW_ROOT_CONTROLLER } from './trackers.specHelper'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

describe('trackMouseInteraction', () => {
let mouseInteractionCallbackSpy: jasmine.Spy<MouseInteractionCallback>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { getEventTarget } from '../eventsUtils'
import { getSerializedNodeId, hasSerializedNode } from '../serialization'
import type { RecordIds } from '../recordIds'
import { tryToComputeCoordinates } from './trackMove'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

const eventTypeToMouseInteraction = {
// Listen for pointerup DOM events instead of mouseup for MouseInteraction/MouseUp records. This
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IncrementalSource, RecordType } from '../../../types'
import type { MousemoveCallBack } from './trackMove'
import { trackMove } from './trackMove'
import { DEFAULT_CONFIGURATION, DEFAULT_SHADOW_ROOT_CONTROLLER } from './trackers.specHelper'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

describe('trackMove', () => {
let mouseMoveCallbackSpy: jasmine.Spy<MousemoveCallBack>
Expand Down
2 changes: 1 addition & 1 deletion packages/rum/src/domain/record/trackers/trackMove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { IncrementalSource } from '../../../types'
import { getEventTarget, isTouchEvent } from '../eventsUtils'
import { convertMouseEventToLayoutCoordinates } from '../viewports'
import { assembleIncrementalSnapshot } from '../assembly'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

const MOUSE_MOVE_OBSERVER_THRESHOLD = 50

Expand Down
2 changes: 1 addition & 1 deletion packages/rum/src/domain/record/trackers/trackMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
import { createMutationBatch } from '../mutationBatch'
import type { ShadowRootCallBack, ShadowRootsController } from '../shadowRootsController'
import { assembleIncrementalSnapshot } from '../assembly'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

export type MutationCallBack = (incrementalSnapshotRecord: BrowserIncrementalSnapshotRecord) => void

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { IncrementalSource, RecordType } from '../../../types'
import type { InputCallback } from './trackInput'
import { DEFAULT_CONFIGURATION, DEFAULT_SHADOW_ROOT_CONTROLLER } from './trackers.specHelper'
import { trackScroll } from './trackScroll'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

describe('trackScroll', () => {
let scrollTracker: Tracker
Expand Down
2 changes: 1 addition & 1 deletion packages/rum/src/domain/record/trackers/trackScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getSerializedNodeId, hasSerializedNode } from '../serialization'
import { IncrementalSource } from '../../../types'
import type { BrowserIncrementalSnapshotRecord, ScrollData } from '../../../types'
import { assembleIncrementalSnapshot } from '../assembly'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

const SCROLL_OBSERVER_THRESHOLD = 100

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { IncrementalSource, RecordType } from '../../../types'
import type { StyleSheetCallback } from './trackStyleSheet'
import { trackStyleSheet, getPathToNestedCSSRule } from './trackStyleSheet'
import { DEFAULT_CONFIGURATION, DEFAULT_SHADOW_ROOT_CONTROLLER } from './trackers.specHelper'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

describe('trackStyleSheet', () => {
let styleSheetTracker: Tracker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { IncrementalSource } from '../../../types'
import type { StyleSheetRuleData, BrowserIncrementalSnapshotRecord } from '../../../types'
import { getSerializedNodeId, hasSerializedNode } from '../serialization'
import { assembleIncrementalSnapshot } from '../assembly'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

type GroupingCSSRuleTypes = typeof CSSGroupingRule | typeof CSSMediaRule | typeof CSSSupportsRule

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { LifeCycle, LifeCycleEventType } from '@datadog/browser-rum-core'
import { RecordType } from '../../../types'
import type { ViewEndCallback } from './trackViewEnd'
import { trackViewEnd } from './trackViewEnd'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

describe('trackViewEnd', () => {
let lifeCycle: LifeCycle
Expand Down
2 changes: 1 addition & 1 deletion packages/rum/src/domain/record/trackers/trackViewEnd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { LifeCycle } from '@datadog/browser-rum-core'
import { LifeCycleEventType } from '@datadog/browser-rum-core'
import type { ViewEndRecord } from '../../../types'
import { RecordType } from '../../../types'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

export type ViewEndCallback = (record: ViewEndRecord) => void

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { RecordType } from '../../../types'
import { DEFAULT_CONFIGURATION, DEFAULT_SHADOW_ROOT_CONTROLLER } from './trackers.specHelper'
import type { VisualViewportResizeCallback } from './trackViewportResize'
import { tackVisualViewportResize } from './trackViewportResize'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

describe('trackViewportResize', () => {
let viewportResizeTracker: Tracker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { IncrementalSource, RecordType } from '../../../types'
import type { BrowserIncrementalSnapshotRecord, ViewportResizeData, VisualViewportRecord } from '../../../types'
import { getVisualViewport } from '../viewports'
import { assembleIncrementalSnapshot } from '../assembly'
import type { Tracker } from './types'
import type { Tracker } from './tracker.types'

const VISUAL_VIEWPORT_OBSERVER_THRESHOLD = 200

Expand Down
2 changes: 1 addition & 1 deletion performances/src/format.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ProfilingResult, ProfilingResults } from './types'
import type { ProfilingResult, ProfilingResults } from './profiling.types'

const DURATION_UNITS = ['μs', 'ms', 's']

Expand Down
2 changes: 1 addition & 1 deletion performances/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Page } from 'puppeteer'
import puppeteer from 'puppeteer'
import { formatProfilingResults } from './format'
import { startProfiling } from './profilers/startProfiling'
import type { ProfilingResults, ProfilingOptions } from './types'
import type { ProfilingResults, ProfilingOptions } from './profiling.types'
import { startProxy } from './proxy'
import { wikipediaScenario } from './scenarios/wikipediaScenario'
import { twitterScenario } from './scenarios/twitterScenario'
Expand Down
2 changes: 1 addition & 1 deletion performances/src/profilers/profilingUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ProfilingOptions } from '../types'
import type { ProfilingOptions } from '../profiling.types'

export function isSdkBundleUrl(options: ProfilingOptions, url: string) {
return url === options.bundleUrl
Expand Down
2 changes: 1 addition & 1 deletion performances/src/profilers/startCpuProfiling.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { CDPSession } from 'puppeteer'
import type { ProfilingOptions } from '../types'
import type { ProfilingOptions } from '../profiling.types'
import { isSdkBundleUrl } from './profilingUtils'

export async function startCPUProfiling(options: ProfilingOptions, client: CDPSession) {
Expand Down
2 changes: 1 addition & 1 deletion performances/src/profilers/startMemoryProfiling.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { CDPSession } from 'puppeteer'
import type { ProfilingOptions } from '../types'
import type { ProfilingOptions } from '../profiling.types'
import { isSdkBundleUrl } from './profilingUtils'

export async function startMemoryProfiling(options: ProfilingOptions, client: CDPSession) {
Expand Down
2 changes: 1 addition & 1 deletion performances/src/profilers/startNetworkProfiling.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { CDPSession, Protocol } from 'puppeteer'
import type { ProfilingOptions } from '../types'
import type { ProfilingOptions } from '../profiling.types'
import { isSdkBundleUrl } from './profilingUtils'

export async function startNetworkProfiling(options: ProfilingOptions, client: CDPSession) {
Expand Down
2 changes: 1 addition & 1 deletion performances/src/profilers/startProfiling.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Page } from 'puppeteer'
import type { ProfilingOptions, ProfilingResults } from '../types'
import type { ProfilingOptions, ProfilingResults } from '../profiling.types'
import { startNetworkProfiling } from './startNetworkProfiling'
import { startCPUProfiling } from './startCpuProfiling'
import { startMemoryProfiling } from './startMemoryProfiling'
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion performances/src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { IncomingMessage, ServerResponse } from 'http'
import { createServer } from 'https'
import type { AddressInfo } from 'net'
import { pki, md } from 'node-forge'
import type { RequestStatsForHost } from './types'
import type { RequestStatsForHost } from './profiling.types'

export interface Proxy {
origin: string
Expand Down
2 changes: 1 addition & 1 deletion performances/src/scenarios/twitterScenario.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { trackNetwork } from '../trackNetwork'
import type { Scenario } from '../types'
import type { Scenario } from '../profiling.types'

export const twitterScenario: Scenario = {
description: `# Twitter
Expand Down
2 changes: 1 addition & 1 deletion performances/src/scenarios/wikipediaScenario.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Scenario } from '../types'
import type { Scenario } from '../profiling.types'

export const wikipediaScenario: Scenario = {
description: `# Wikipedia
Expand Down