© 2026 Hedgehog Software, LLC
import { Context } from 'hono';
handler: async (c: Context) => {
Type '(c: Context) => Promise<Response & TypedResponse<{ message: string; }>>' is not assignable to type 'Handler<{ Variables: { mastra: Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, LegacyWorkflow<LegacyStep<string, any, any, StepExecutionContext<any, WorkflowContext<...>>>[], string, any, any>>, ... 6 more ..., Record<...>>; }; }, "/my-custom-route", ParamsFromPath<...>>'. Types of parameters 'c' and 'c' are incompatible.