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> |
||
---|---|---|
.. | ||
data-fetching | ||
built-in-css-support.md | ||
environment-variables.md | ||
eslint.md | ||
fast-refresh.md | ||
font-optimization.md | ||
image-optimization.md | ||
layouts.md | ||
pages.md | ||
script.md | ||
static-file-serving.md | ||
supported-browsers-features.md | ||
typescript.md |