import type { ErrorEvent, Event, FeedbackEvent, ReplayEvent, TransactionEvent } from '@sentry/core'; /** If the event is an error event */ export function isErrorEvent(event: Event): event is ErrorEvent { return !event.type; } /** If the event is a transaction event */ export function isTransactionEvent(event: Event): event is TransactionEvent { return event.type === 'transaction'; } /** If the event is an replay event */ export function isReplayEvent(event: Event): event is ReplayEvent { return event.type === 'replay_event'; } /** If the event is a feedback event */ export function isFeedbackEvent(event: Event): event is FeedbackEvent { return event.type === 'feedback'; }