From 354bf5d707968b17f59df2ce3bdf73ecb7181088 Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Tue, 20 Dec 2022 01:34:47 -0800 Subject: [PATCH] fix: deprecated h3 properties --- src/runtime/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/api.ts b/src/runtime/api.ts index c2c4562..2162d36 100644 --- a/src/runtime/api.ts +++ b/src/runtime/api.ts @@ -30,7 +30,7 @@ export interface OnErrorPayload { error: TRPCError type: ProcedureType | 'unknown' path: string | undefined - req: H3Event['req'] + req: H3Event['node']['req'] input: unknown ctx: undefined | inferRouterContext } @@ -54,7 +54,7 @@ export function createTRPCHandler({ const { req, res, - } = event + } = event.node const $url = createURL(req.url!)