How to extend type declaration for TypeScript?

前端 未结 0 1090
清酒与你
清酒与你 2021-01-29 21:23

In an Express app, I append user property to the request object in the middleware auth.

// index.ts
app.get(\'/test\', auth, (req: Reque         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题