-2
How can I fix the error
Property 'user' does not exist on type 'Request<ParamsDictionary, any, any, ParsedQs>
I created a @types folder at the root, inside it had a file express.d.ts
with the following code
declare namespace Express {
export interface Request {
user: {
id: string;
};
}
}
when I type request. already gives me the request.user option but when I run the error code just on that line.