DEV Community

Discussion on: Extend Express's Request Object with Typescript Declaration Merging.

Collapse
 
damjuve profile image
damjuve

Hello,

Thanks for this very usefull tips.
I still have a question about exporting this.
I would like to extend express Request with UserModel, exactly like you did. But I am doing it in a homemade node module.
Then I install this node module in a node project and I don't have access to the extended request. How can i do this ?