Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/next/src/shared/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ export type AppContextType<Router extends NextRouter = NextRouter> = {
router: Router
}

export type AppInitialProps<PageProps = any> = {
pageProps: PageProps
export type AppInitialProps<PageProps = any> = PageProps & {
pageProps: any
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pageProps: any
pageProps: PageProps

AppInitialProps type change replaces pageProps: PageProps with pageProps: any, silently removing type safety for all consumers that access custom props through pageProps.

Fix on Vercel

}

export type AppPropsType<
Expand Down
Loading