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: 2 comments
-
Hmm looks like the export interface AuthRequest extends Request {
user?: {
id: string;
[key: string]: any;
};
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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