From b866b2cb67e7592f6134eaa8f688efed4f0e2899 Mon Sep 17 00:00:00 2001 From: Jack Williams <1736957+jpwilliams@users.noreply.github.com> Date: Fri, 12 Jul 2024 18:35:42 +0000 Subject: [PATCH] Disallow listening for internal events with `step.waitForEvent()` --- packages/inngest/src/components/InngestStepTools.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/inngest/src/components/InngestStepTools.ts b/packages/inngest/src/components/InngestStepTools.ts index c77942105..fbfd0dc43 100644 --- a/packages/inngest/src/components/InngestStepTools.ts +++ b/packages/inngest/src/components/InngestStepTools.ts @@ -214,13 +214,13 @@ export const createStepTools = < >( idOrOptions: StepOptionsOrId, opts: WaitForEventOpts< - GetEvents, + GetEvents, TTriggers & string, IncomingEvent > ) => Promise< IncomingEvent extends TriggersFromClient - ? GetEvents[IncomingEvent] | null + ? GetEvents[IncomingEvent] | null : IncomingEvent | null > >(