From f93cb48d4d354e458f2810b8d49a5ce64d771183 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Thu, 7 Jul 2022 18:56:27 +0200 Subject: [PATCH] fix: query partial type --- lib/helpers/extendRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers/extendRequest.ts b/lib/helpers/extendRequest.ts index 8ed3ee0571..5ae84596d1 100644 --- a/lib/helpers/extendRequest.ts +++ b/lib/helpers/extendRequest.ts @@ -13,7 +13,7 @@ declare module "next" { method: string; prisma: PrismaClient; session: { user: { id: number } }; - query: { [key: string]: string | string[] }; + query: Partial<{ [key: string]: string | string[] }>; isAdmin: boolean; } }