Skip to content

Commit 5192842

Browse files
committed
stop caring about return type of workflow
1 parent 1e85a18 commit 5192842

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/client/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,12 @@ export type WorkflowDefinition<
5858
ArgsValidator extends PropertyValidators,
5959
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6060
ReturnsValidator extends Validator<any, "required", any> | void = any,
61-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
62-
ReturnValue extends ReturnValueForOptionalValidator<ReturnsValidator> = any,
6361
> = {
6462
args?: ArgsValidator;
6563
handler: (
6664
step: WorkflowStep,
6765
args: ObjectType<ArgsValidator>,
68-
) => Promise<ReturnValue>;
66+
) => Promise<ReturnValueForOptionalValidator<ReturnsValidator>>;
6967
returns?: ReturnsValidator;
7068
workpoolOptions?: WorkpoolRetryOptions;
7169
};
@@ -93,10 +91,8 @@ export class WorkflowManager {
9391
define<
9492
ArgsValidator extends PropertyValidators,
9593
ReturnsValidator extends Validator<unknown, "required", string> | void,
96-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
97-
ReturnValue extends ReturnValueForOptionalValidator<ReturnsValidator> = any,
9894
>(
99-
workflow: WorkflowDefinition<ArgsValidator, ReturnsValidator, ReturnValue>,
95+
workflow: WorkflowDefinition<ArgsValidator, ReturnsValidator>,
10096
): RegisteredMutation<
10197
"internal",
10298
{

0 commit comments

Comments
 (0)