Skip to content

Commit aad38ab

Browse files
committed
ref(types): Add undefined as possible event type
1 parent 6a275c0 commit aad38ab

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/types/src/event.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ export interface Event {
5858
};
5959
}
6060

61-
/** JSDoc */
62-
export type EventType = 'transaction' | 'profile';
61+
/**
62+
* The type of an `Event`.
63+
* Note that `ErrorEvent`s do not have a type (hence its undefined),
64+
* while all other events are required to have one.
65+
*/
66+
export type EventType = 'transaction' | 'profile' | undefined;
6367

6468
export interface ErrorEvent extends Event {
6569
type: undefined;

0 commit comments

Comments
 (0)