title: How to solve the TS7009 TypeScript error?
body: <p>I am new in Typescript programming. Now I am in learning phase. I have face a problem during coding through receiving an error in back end console.
  The above mentioned code is:</p>
  <pre><code>function employee(id:number,name:string) { 
     this.id = id 
     this.name = name 
  } 
  
  var emp = new employee(123,&quot;Smith&quot;) 
  employee.prototype.email = &quot;smith@abc.com&quot; 
  
  console.log(&quot;Employee 's Id: &quot;+emp.id) 
  console.log(&quot;Employee's name: &quot;+emp.name) 
  console.log(&quot;Employee's Email ID: &quot;+emp.email)
  </code></pre>
  <p>Output @ Browser console is:</p>
  <pre><code>www.ts:10 Employee 's Id: 123
  www.ts:11 Employee's name: Smith
  www.ts:12 Employee's Email ID: smith@abc.com
  </code></pre>
  <p>And the error in Node console is:</p>
  <pre><code>[0] www/www.ts(6,15): error TS7009: 'new' expression, whose target lacks
  a construct signature, implicitly has an 'any' type.
  </code></pre>
  <p>Please help me to resolve this error.
  Thanks....</p>