Skip to content

Commit 8bc9e4a

Browse files
Add transition event type
1 parent 10b6ea6 commit 8bc9e4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/rum-core/src/domain/event/eventCollection.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import type {
1111
RawRumResourceEvent,
1212
RawRumVitalEvent,
1313
RawRumStreamEvent,
14+
RawRumTransitionEvent,
1415
} from '../../rawRumEvent.types'
1516
import { RumEventType } from '../../rawRumEvent.types'
1617

@@ -21,6 +22,7 @@ const allowedEventTypes = [
2122
RumEventType.RESOURCE,
2223
RumEventType.STREAM,
2324
RumEventType.VITAL,
25+
RumEventType.TRANSITION,
2426
] as const
2527

2628
export type AllowedRawRumEvent = (
@@ -31,6 +33,7 @@ export type AllowedRawRumEvent = (
3133
| RawRumActionEvent
3234
| RawRumVitalEvent
3335
| RawRumStreamEvent
36+
| RawRumTransitionEvent
3437
) & { context?: Context }
3538

3639
export function startEventCollection(lifeCycle: LifeCycle) {

0 commit comments

Comments
 (0)