title: Create declaration for an anonymous function export in js file
body: <pre><code>module.exports = function (param1, param2) {
  return { fun }
   function fun () {
   ...
   }
  }
  </code></pre>
  <p>How to create typescript declaration file for this JavaScript file.</p>