From 9dfce31dac3b4e64f1ca8bad8d9b23f73d431e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Tue, 22 Nov 2022 13:49:01 +0100 Subject: [PATCH] fix(ts): re-export `PageComponent` and `LayoutComponent` types (#43226) --- packages/next/build/webpack/plugins/flight-types-plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next/build/webpack/plugins/flight-types-plugin.ts b/packages/next/build/webpack/plugins/flight-types-plugin.ts index 15371d5337a2b..9d92207b222ae 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 { ${