0234e6d553
* Added type to Page Component for TypeScript Following this tutorial, I noticed that TS was complaining that "getLayout" did not exist on Page. That is normal since Page is typed as NextPage. I simply exported the new type we create in "_App.tsx" and used it as the return type for Page. This will probably help others seeing that red in their editors and perhaps being confused. * Small linting change * Apply suggestions from code review * Update layouts.md * lint fix * update type Co-authored-by: JJ Kasper <jj@jjsweb.site> |
||
---|---|---|
.. | ||
advanced-features | ||
api-reference | ||
api-routes | ||
basic-features | ||
guides | ||
migrating | ||
routing | ||
authentication.md | ||
deployment.md | ||
faq.md | ||
getting-started.md | ||
going-to-production.md | ||
manifest.json | ||
testing.md | ||
upgrading.md |