title: Function objects in Typescript d.ts
body: <p>I am trying to map a library (not written by me) to a .d.ts file. It has an object that is a function but that has properties (some of them also functions), like this:</p>
  
  <pre><code>var asd = function () { return 1; };
  asd.two = function () { return 2; };
  asd.three = 'three';
  </code></pre>
  
  <p>How can I write the type of asd in a .d.ts file? How to specify that it is a function that returns a number and that has two properties, one a function returning a number and one that is a string</p>