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:
var asd = function () { return 1; };
asd.two = function () { return 2; };
asd.three = 'three';
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