@@ -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