Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions rivetkit-typescript/packages/rivetkit/src/workflow/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export class ActorWorkflowContext<
}

async step<T>(
nameOrConfig: string | Parameters<WorkflowContextInterface["step"]>[0],
nameOrConfig: string | StepConfig<T>,
run?: () => Promise<T>,
): Promise<T> {
if (typeof nameOrConfig === "string") {
Expand All @@ -261,9 +261,7 @@ export class ActorWorkflowContext<
}

async tryStep<T>(
nameOrConfig:
| string
| Parameters<WorkflowContextInterface["tryStep"]>[0],
nameOrConfig: string | TryStepConfig<T>,
run?: () => Promise<T>,
): Promise<TryStepResult<T>> {
if (typeof nameOrConfig === "string") {
Expand Down
Loading