TypeScript with passport-local: Cannot use 'new' with an expression whose type lacks a call or construct signature
<p>I'm trying to use the <code>passport-local</code> package with TypeScript (2.0.0RC) but I'm getting a compiler error stating:</p>

<blockquote>
  <p>error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature</p>
</blockquote>

<p>Screenshot of this in VS Code attached (the code under the tooltip is just <code>passport.use(</code>).</p>

<p><a href="https://i.stack.imgur.com/weJcR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/weJcR.jpg" alt="enter image description here"></a></p>

<p>I cannot for the life of me figure out how to give it the signature it wants.</p>

<p>I found a <a href="https://github.com/Microsoft/TypeScript/issues/2081" rel="nofollow noreferrer">few</a> <a href="https://github.com/Microsoft/TypeScript/issues/1946" rel="nofollow noreferrer">issues</a> on the topic, but anything I try just gives other compiler errors.</p>

<p>Does anyone have any suggestions how to make the compiler happy with this code?</p>