essential fix !!!

This commit is contained in:
OrlS15 2023-09-03 23:51:28 +02:00 committed by GitHub
parent 31b6265222
commit 5af5a8696a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ For example, you can define a custom handler utility that wraps the original han
```ts [server/utils/handler.ts] ```ts [server/utils/handler.ts]
import type { EventHandler, EventHandlerRequest } from 'h3' import type { EventHandler, EventHandlerRequest } from 'h3'
export const defineWrappedResponseHandler = <T extends EventHandlerRequest, D>( export const defineWrappedResponseHandler = <T extends EventHandlerRequest, D> (
handler: EventHandler<T, D> handler: EventHandler<T, D>
): EventHandler<T, D> => ): EventHandler<T, D> =>
defineEventHandler<T>(async event => { defineEventHandler<T>(async event => {