Skip to content

Commit

Permalink
fix: add event to any event type (COR-3436) (#554)
Browse files Browse the repository at this point in the history
add event to any event type
  • Loading branch information
amandasteinhauer committed Oct 21, 2024
1 parent d65167e commit b5f2931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/base-types/src/node/utils/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface GeneralEvent extends BaseEvent {
name: string;
}

export type AnyEvent = IntentEvent | GeneralEvent;
export type AnyEvent = IntentEvent | GeneralEvent | EventEvent;

export const isIntentEvent = (event: BaseEvent): event is IntentEvent => event.type === EventType.INTENT;

Expand Down

0 comments on commit b5f2931

Please sign in to comment.