File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ export type WorkflowBindings = {
21
21
*/
22
22
export const serve = <
23
23
TInitialPayload = unknown ,
24
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
25
24
TBindings extends WorkflowBindings = WorkflowBindings ,
25
+ TVariables extends object = object ,
26
26
> (
27
27
routeFunction : RouteFunction < TInitialPayload > ,
28
28
options ?: Omit < WorkflowServeOptions < Response , TInitialPayload > , "onStepFinish" >
29
- ) : ( ( context : Context < { Bindings : TBindings } > ) => Promise < Response > ) => {
30
- const handler = async ( context : Context < { Bindings : TBindings } > ) => {
29
+ ) : ( ( context : Context < { Bindings : TBindings ; Variables : TVariables } > ) => Promise < Response > ) => {
30
+ const handler = async ( context : Context < { Bindings : TBindings ; Variables : TVariables } > ) => {
31
31
const environment = context . env ;
32
32
const request = context . req . raw ;
33
33
You can’t perform that action at this time.
0 commit comments