Unable to use controller function in routes.(get|post|put|...) in place of ...handlers: RequestHandler with extended Request interface #6455
Unanswered
SwapnilSoni1999
asked this question in
Q&A
Replies: 1 comment
-
Hmm looks like the export interface AuthRequest extends Request {
user?: {
id: string;
[key: string]: any;
};
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Getting following error when I use custom extended Request interface
here's how I extend
here is the error
The full error:
Beta Was this translation helpful? Give feedback.
All reactions