title: TYPESCRIPT - express-session handling
body: <p>I'm struggling to set-up express-session into my TS project. When I make my basic setup of it (JS way), I create a MW that is called at each API demand, this way I can create or no a new user array into my session.</p>
  <pre><code>import {Request, Response, NextFunction} from 'express'
  
  module.exports = (req: Request, res: Response, next: NextFunction) =&gt; {
      console.log('session checker : ', req.session)
      if (!req.session){
          req.session.user = []
          console.log('session initialized')
      }
      next();
  }
  
  </code></pre>
  <p>The struggle is on the .user, TS display me this error</p>
  <pre><code>Property 'user' does not exist on type 'never'.
  </code></pre>
  <p>Do you have an idea to get over it ?</p>
  <p>Thanks in advance,</p>
  <p>Paul</p>