Does the next.js have types for getServerSideProps context

Solution:Jump to solution
have had much more luck not declaring a type on the function itself, and instead just typing the context as
GetServerSidePropsContext
5 Replies
Functions: getServerSideProps
API reference for
getServerSideProps
. Learn how to fetch data on each request with Next.js.Yup
You can toggle the code example to typescript
i hate the types in the Next.js docs
Solution
have had much more luck not declaring a type on the function itself, and instead just typing the context as
GetServerSidePropsContext
Nice yeah I like that too