diff --git a/packages/types/src/envelope.ts b/packages/types/src/envelope.ts index 61d3b7d38a1d..d7089fbb0225 100644 --- a/packages/types/src/envelope.ts +++ b/packages/types/src/envelope.ts @@ -7,7 +7,7 @@ import type { FeedbackEvent, UserFeedback } from './feedback'; import type { Profile } from './profiling'; import type { ReplayEvent, ReplayRecordingData } from './replay'; import type { SdkInfo } from './sdkinfo'; -import type { SerializedSession, Session, SessionAggregates } from './session'; +import type { SerializedSession, SessionAggregates } from './session'; import type { SpanJSON } from './span'; // Based on: https://develop.sentry.dev/sdk/envelopes/ @@ -87,8 +87,7 @@ export type EventItem = BaseEnvelopeItem; export type AttachmentItem = BaseEnvelopeItem; export type UserFeedbackItem = BaseEnvelopeItem; export type SessionItem = - // TODO(v8): Only allow serialized session here (as opposed to Session or SerializedSesison) - | BaseEnvelopeItem + | BaseEnvelopeItem | BaseEnvelopeItem; export type ClientReportItem = BaseEnvelopeItem; export type CheckInItem = BaseEnvelopeItem;