diff --git a/packages/next/build/webpack/plugins/flight-types-plugin.ts b/packages/next/build/webpack/plugins/flight-types-plugin.ts index 8bd26179939b377..54d31b078a7453c 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