From 20e48215e5f59bb0888d28e172614f6f43386e4b Mon Sep 17 00:00:00 2001 From: ABCxFF <79597906+abcxff@users.noreply.github.com> Date: Thu, 21 May 2026 21:15:57 +0000 Subject: [PATCH] fix(rivetkit): infer T from step/tryStep config object in workflow context wrapper --- .../packages/rivetkit/src/workflow/context.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rivetkit-typescript/packages/rivetkit/src/workflow/context.ts b/rivetkit-typescript/packages/rivetkit/src/workflow/context.ts index 9c148e8f96..2938f524a4 100644 --- a/rivetkit-typescript/packages/rivetkit/src/workflow/context.ts +++ b/rivetkit-typescript/packages/rivetkit/src/workflow/context.ts @@ -239,7 +239,7 @@ export class ActorWorkflowContext< } async step( - nameOrConfig: string | Parameters[0], + nameOrConfig: string | StepConfig, run?: () => Promise, ): Promise { if (typeof nameOrConfig === "string") { @@ -261,9 +261,7 @@ export class ActorWorkflowContext< } async tryStep( - nameOrConfig: - | string - | Parameters[0], + nameOrConfig: string | TryStepConfig, run?: () => Promise, ): Promise> { if (typeof nameOrConfig === "string") {