Skip to content

Commit 2ab35cf

Browse files
committed
adjust types for eventbuffer -> proxy
1 parent faa2d54 commit 2ab35cf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/replay-internal/src/eventBuffer/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { getWorkerURL } from '@sentry-internal/replay-worker';
22

33
import { DEBUG_BUILD } from '../debug-build';
4-
import type { EventBuffer } from '../types';
54
import { logger } from '../util/logger';
65
import { EventBufferArray } from './EventBufferArray';
76
import { EventBufferProxy } from './EventBufferProxy';
@@ -20,7 +19,7 @@ declare const __SENTRY_EXCLUDE_REPLAY_WORKER__: boolean;
2019
export function createEventBuffer({
2120
useCompression,
2221
workerUrl: customWorkerUrl,
23-
}: CreateEventBufferParams): EventBuffer {
22+
}: CreateEventBufferParams): EventBufferProxy {
2423
if (
2524
useCompression &&
2625
// eslint-disable-next-line no-restricted-globals

packages/replay-internal/src/replay.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import type {
2727
AddUpdateCallback,
2828
AllPerformanceEntry,
2929
AllPerformanceEntryData,
30-
EventBuffer,
3130
InternalEventContext,
3231
PopEventContext,
3332
RecordingEvent,
@@ -58,12 +57,13 @@ import { sendReplay } from './util/sendReplay';
5857
import { RateLimitError } from './util/sendReplayRequest';
5958
import type { SKIPPED } from './util/throttle';
6059
import { THROTTLED, throttle } from './util/throttle';
60+
import type { EventBufferProxy } from './eventBuffer/EventBufferProxy';
6161

6262
/**
6363
* The main replay container class, which holds all the state and methods for recording and sending replays.
6464
*/
6565
export class ReplayContainer implements ReplayContainerInterface {
66-
public eventBuffer: EventBuffer | null;
66+
public eventBuffer: EventBufferProxy | null;
6767

6868
public performanceEntries: AllPerformanceEntry[];
6969

0 commit comments

Comments
 (0)