Skip to content

Commit 7596132

Browse files
fix(ts): re-export PageComponent and LayoutComponent types (vercel#43226)
1 parent 3a2af8f commit 7596132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/next/build/webpack/plugins/flight-types-plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ interface LayoutProps {
3535
params: any
3636
}
3737
38-
type PageComponent = (props: PageProps) => React.ReactNode | Promise<React.ReactNode>
39-
type LayoutComponent = (props: LayoutProps) => React.ReactNode | Promise<React.ReactNode>
38+
export type PageComponent = (props: PageProps) => React.ReactNode | Promise<React.ReactNode>
39+
export type LayoutComponent = (props: LayoutProps) => React.ReactNode | Promise<React.ReactNode>
4040
4141
interface IEntry {
4242
${

0 commit comments

Comments
 (0)