title: Namespace 'Express' has no exported member 'SessionData'
body: <p>I'm trying to build a typeScript project but it has an error and I do not know where it comes from and nothing has changed since last time.</p>
  <pre><code>
  node_modules/connect-mongo/src/types.d.ts:113:66 - error TS2694: Namespace 'Express' has no exported member 'SessionData'.
  
  113         get: (sid: string, callback: (err: any, session: Express.SessionData | null) =&gt; void) =&gt; void;
                                                                       ~~~~~~~~~~~
  
  node_modules/connect-mongo/src/types.d.ts:114:45 - error TS2694: Namespace 'Express' has no exported member 'SessionData'.
  
  114         set: (sid: string, session: Express.SessionData, callback?: (err: any) =&gt; void) =&gt; void;
                                                  ~~~~~~~~~~~
  
  node_modules/connect-mongo/src/types.d.ts:118:47 - error TS2694: Namespace 'Express' has no exported member 'SessionData'.
  
  118         touch: (sid: string, session: Express.SessionData, callback?: (err: any) =&gt; void) =&gt; void;
                                                    ~~~~~~~~~~~
  
  src/controllers/http/auth/auth.ts:16:44 - error TS2339: Property 'user' does not exist on type 'Session &amp; Partial&lt;SessionData&gt;'.
  
  16             if (req.session &amp;&amp; req.session.user) {
                                                ~~~~
  
  src/controllers/http/auth/auth.ts:41:29 - error TS2339: Property 'user' does not exist on type 'Session &amp; Partial&lt;SessionData&gt;'.
  
  41                 req.session.user = user;
                                 ~~~~
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/FNsW9.png" rel="noreferrer">The place where the typescript gives an error</a></p>
  <p><a href="https://i.stack.imgur.com/HnP6K.png" rel="noreferrer">express-session  this is how it is imported</a></p>