Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

req.user typescript

// add this in your types.d.ts
declare global {
  namespace Express {
    interface Request {
      user: any
    }
  }
}
 
PREVIOUS NEXT
Tagged: #typescript
ADD COMMENT
Topic
Name
3+5 =