diff --git a/packages/types/src/event.ts b/packages/types/src/event.ts index 10a65a34f11b..3c8b27c49f10 100644 --- a/packages/types/src/event.ts +++ b/packages/types/src/event.ts @@ -58,8 +58,12 @@ export interface Event { }; } -/** JSDoc */ -export type EventType = 'transaction' | 'profile'; +/** + * The type of an `Event`. + * Note that `ErrorEvent`s do not have a type (hence its undefined), + * while all other events are required to have one. + */ +export type EventType = 'transaction' | 'profile' | undefined; export interface ErrorEvent extends Event { type: undefined;