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