I'm getting the below typescript error when I use handler.apply method inside pages
Argument of type 'IncomingMessage' is not assignable to parameter of type 'NextApiRequest'.
Type 'IncomingMessage' is missing the following properties from type '{ query: { [key: string]: string | string[]; }; cookies: { [key: string]: string; }; body: any; }': query, cookies, body
So, inside the getServerSideProps/getInitialProps method the req and res we get from context are of type Incoming message and ServerResponse respectively and I'm not able to run the handler because of this issue
I'm getting the below typescript error when I use handler.apply method inside pages
So, inside the getServerSideProps/getInitialProps method the req and res we get from context are of type Incoming message and ServerResponse respectively and I'm not able to run the handler because of this issue