文章简介:The Problem
I’ve been working on a Node.js project with TypeScript and Express.js. At one point, I needed to attach a user object to the Express Request object, but I ran into this TypeScript error:
Property 'user' does not exist on type 'Request'.