From 0a9699df486831ed512ebf6afe2bd74394ff2a33 Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Mon, 24 Oct 2022 00:30:10 -0700 Subject: [PATCH] remove null --- 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 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 { ${