I need to know how to define next js Context types and and it's req types?
Here I write this getServerSideProps function-
//Server side functions
export const getServerSideProps: GetServerSideProps = async (context) => {
await getMovies(context, context.req);
return { props: {} }
}
And here I write this function-
export const getMovies = (context: **types, req: **types) => {
//here the main function
}
Here How Can I define context types and req types?
Please help me?