From 5ec30c8fc4668b8dfb48ddfc805e1998831177f7 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Sat, 21 May 2022 00:02:22 +0200 Subject: [PATCH] fix: update types for next api request --- packages/types/next.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/types/next.d.ts b/packages/types/next.d.ts index aa0e02c1c2..5955b4f7af 100644 --- a/packages/types/next.d.ts +++ b/packages/types/next.d.ts @@ -6,5 +6,9 @@ import "./next-auth"; export declare module "next" { interface NextApiRequest extends IncomingMessage { session?: Session | null; + userId: number; + method: string; + query: { [key: string]: string | string[] }; + body: any; } }