Skip to content

Commit

Permalink
Disallow listening for internal events with step.waitForEvent()
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams committed Jul 12, 2024
1 parent 376878a commit b866b2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/inngest/src/components/InngestStepTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ export const createStepTools = <
<IncomingEvent extends TriggersFromClient<TClient>>(
idOrOptions: StepOptionsOrId,
opts: WaitForEventOpts<
GetEvents<TClient, true>,
GetEvents<TClient, false>,
TTriggers & string,
IncomingEvent
>
) => Promise<
IncomingEvent extends TriggersFromClient<TClient>
? GetEvents<TClient, true>[IncomingEvent] | null
? GetEvents<TClient, false>[IncomingEvent] | null
: IncomingEvent | null
>
>(
Expand Down

0 comments on commit b866b2c

Please sign in to comment.