title: How to use javascript module into typescript file
body: <p>Here is the .js file :</p>
  
  <pre><code>var mongoose=require('mongoose');
  var express=require('express');
  var app=express();
  
  var connect=mongoose.connect("mongodb://localhost:27017/techo2log");
  var schema=mongoose.Schema;
  var userschema=new schema(
  {
      name:String,
      age:Number,
      address:String,
      created_at:Date,
      updated_at:Date,
  
  }
  );
  
  var User=mongoose.model('User',userschema);
  userschema.method.dudify=function()
  {
  this.name=this.name+'-dude';
  return this.name;
  }
  
  //making the model available to the external file
  module.exports=User;
  </code></pre>
  
  <p>I want to use the User Module in my type script file.How should I write the typescript definition file for the above code so that I could import in my .ts file.</p>