TS - Only a void function can be called with the 'new' keyword : <p>I am getting this weird error from TypeScript:</p>

<blockquote>
  <p>"Only a void function can be called with the 'new' keyword."</p>
</blockquote>

<p><strong>What?</strong></p>

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

<p>The constructor function, just looks like:</p>

<pre><code>function Suman(obj: ISumanInputs): void {

  const projectRoot = _suman.projectRoot;

  // via options
  this.fileName = obj.fileName;
  this.slicedFileName = obj.fileName.slice(projectRoot.length);
  this.networkLog = obj.networkLog;
  this.outputPath = obj.outputPath;
  this.timestamp = obj.timestamp;
  this.sumanId = ++sumanId;

  // initialize
  this.allDescribeBlocks = [];
  this.describeOnlyIsTriggered = false;
  this.deps = null;
  this.numHooksSkipped = 0;
  this.numHooksStubbed = 0;
  this.numBlocksSkipped = 0;

}
</code></pre>

<p>I have no idea what the problem is. I tried adding and removing the return type (void) but that did nothing.</p>
