diff --git a/packages/next/build/webpack/plugins/flight-types-plugin.ts b/packages/next/build/webpack/plugins/flight-types-plugin.ts index c1df11d445746..4d19d4eddad78 100644 --- a/packages/next/build/webpack/plugins/flight-types-plugin.ts +++ b/packages/next/build/webpack/plugins/flight-types-plugin.ts @@ -35,8 +35,8 @@ interface LayoutProps { params?: PageParams } -type PageComponent = (props: PageProps) => React.ReactNode | null | Promise -type LayoutComponent = (props: LayoutProps) => React.ReactNode | null | Promise +type PageComponent = (props: PageProps) => React.ReactNode | Promise +type LayoutComponent = (props: LayoutProps) => React.ReactNode | Promise interface IEntry { ${