We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af834e3 commit 9403be6Copy full SHA for 9403be6
platforms/hono.ts
@@ -51,8 +51,13 @@ export const serve = <
51
return handler;
52
};
53
54
-export const createWorkflow = <TInitialPayload, TResult>(
55
- ...params: Parameters<typeof serve<TInitialPayload, WorkflowBindings, Variables, TResult>>
+export const createWorkflow = <
+ TInitialPayload = unknown,
56
+ TResult = unknown,
57
+ TBindings extends WorkflowBindings = WorkflowBindings,
58
+ TVariables extends Variables = Variables,
59
+>(
60
+ ...params: Parameters<typeof serve<TInitialPayload, TBindings, TVariables, TResult>>
61
): InvokableWorkflow<TInitialPayload, TResult> => {
62
const [routeFunction, options = {}] = params;
63
return {
0 commit comments