mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
essential fix !!!
This commit is contained in:
parent
31b6265222
commit
5af5a8696a
@ -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 => {
|
||||||
|
Loading…
Reference in New Issue
Block a user