diff --git a/packages/next/build/webpack/plugins/flight-types-plugin.ts b/packages/next/build/webpack/plugins/flight-types-plugin.ts index 15371d5337a2..9d92207b222a 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: any } -type PageComponent = (props: PageProps) => React.ReactNode | Promise -type LayoutComponent = (props: LayoutProps) => React.ReactNode | Promise +export type PageComponent = (props: PageProps) => React.ReactNode | Promise +export type LayoutComponent = (props: LayoutProps) => React.ReactNode | Promise interface IEntry { ${