diff --git a/src/compat.ts b/src/compat.ts index 6815b694..f6c3887c 100644 --- a/src/compat.ts +++ b/src/compat.ts @@ -46,10 +46,10 @@ export type Handler> = HandlerFn< function defineFn( fn: ( ctx: FreshContext, - ) => Request | VNode | null | Promise, + ) => Response | VNode | null | Promise, ): ( ctx: FreshContext, -) => Request | VNode | null | Promise { +) => Response | VNode | null | Promise { return fn; }