diff --git a/src/event/utils.ts b/src/event/utils.ts index 53c26b2f..f0e57ec8 100644 --- a/src/event/utils.ts +++ b/src/event/utils.ts @@ -22,15 +22,15 @@ export function defineEventHandler< Response = EventHandlerResponse, >( handler: EventHandler< - Request extends EventHandlerRequest ? Request : any, + Request extends EventHandlerRequest ? Request : EventHandlerRequest, Request extends EventHandlerRequest ? Response : Request >, ): EventHandler< - Request extends EventHandlerRequest ? Request : any, + Request extends EventHandlerRequest ? Request : EventHandlerRequest, Request extends EventHandlerRequest ? Response : Request >; export function defineEventHandler< - Request extends EventHandlerRequest = EventHandlerRequest, + Request extends EventHandlerRequest, Response = EventHandlerResponse, >( handler: