File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export function defineValidatedHandler<
7070 } ,
7171 Res
7272 > ;
73- } ) : EventHandler <
73+ } ) : EventHandlerWithFetch <
7474 TypedRequest < InferOutput < RequestBody > , InferOutput < RequestHeaders > > ,
7575 Res
7676> {
Original file line number Diff line number Diff line change 88
99import type { H3Event } from "../src/event.ts" ;
1010import { z } from "zod" ;
11- import type { EventHandlerWithFetch } from "../src/types/handler.ts" ;
1211
1312describe ( "handler.ts" , ( ) => {
1413 describe ( "defineHandler" , ( ) => {
@@ -99,7 +98,7 @@ describe("handler.ts", () => {
9998 headers : event . req . headers ,
10099 } ;
101100 } ,
102- } ) as unknown as EventHandlerWithFetch ; // TODO: fix type incompatibility
101+ } ) ;
103102
104103 it ( "valid request" , async ( ) => {
105104 const res = await handler . fetch ( "/?id=123" , {
You can’t perform that action at this time.
0 commit comments