Is NextPage necessary when building NextJS apps in TypeScript



This content originally appeared on DEV Community and was authored by Pavel Fedotov

The most voted answer is not correct in my NextJs 15 project.

export default function Post: NextPage<Props> ({ project }) {
}

It asks for

 '=>' expected.

And in addition, this is not how the function is declared.

If we want to keep a function

export default function Post({


This content originally appeared on DEV Community and was authored by Pavel Fedotov