Skip to content

Commit 1b24942

Browse files
author
Luca Forstner
committed
feat(lforst): Only allow SerializedSession in session envelope items
1 parent 4e318fd commit 1b24942

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/types/src/envelope.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ export type EventItem = BaseEnvelopeItem<EventItemHeaders, Event>;
8888
export type AttachmentItem = BaseEnvelopeItem<AttachmentItemHeaders, string | Uint8Array>;
8989
export type UserFeedbackItem = BaseEnvelopeItem<UserFeedbackItemHeaders, UserFeedback>;
9090
export type SessionItem =
91-
// TODO(v8): Only allow serialized session here (as opposed to Session or SerializedSesison)
92-
| BaseEnvelopeItem<SessionItemHeaders, Session | SerializedSession>
91+
| BaseEnvelopeItem<SessionItemHeaders, SerializedSession>
9392
| BaseEnvelopeItem<SessionAggregatesItemHeaders, SessionAggregates>;
9493
export type ClientReportItem = BaseEnvelopeItem<ClientReportItemHeaders, ClientReport>;
9594
export type CheckInItem = BaseEnvelopeItem<CheckInItemHeaders, SerializedCheckIn>;

0 commit comments

Comments
 (0)