From 6de363627fd338bf76e7de9fe7300ce1d544ac19 Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Thu, 27 Oct 2022 16:17:55 -0700 Subject: [PATCH] fix build type error --- packages/next/build/webpack/plugins/flight-types-plugin.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/next/build/webpack/plugins/flight-types-plugin.ts b/packages/next/build/webpack/plugins/flight-types-plugin.ts index 8bd26179939b..6239d6cd1355 100644 --- a/packages/next/build/webpack/plugins/flight-types-plugin.ts +++ b/packages/next/build/webpack/plugins/flight-types-plugin.ts @@ -27,12 +27,12 @@ check(entry) type PageParams = Record interface PageProps { - params?: PageParams - searchParams?: Record + params: any + searchParams: any } interface LayoutProps { children: React.ReactNode - params?: PageParams + params: any } type PageComponent = (props: PageProps) => React.ReactNode | Promise