DEV Community

Discussion on: Extending Express' Types with TypeScript Declaration Merging - TypeScript 4

Collapse
 
voinik profile image
voinik

My god, you are a life saver! I've been looking for a way to do this. I came across the declare global approach, but that didn't work. I came across the export Request approach, but that broke the middleware I was using. This is the only approach I've seen that works. THANK YOU!

Collapse
 
chris927 profile image
Chris927

Glad it helped! You're welcome.