describe-package will read in the d.ts of a package and give a nicely formatted JSON description.
But it doesn't do a good job of common functions. They're reported as "namespaces" with no actual content. I've always blamed this on the Typescript compiler and I think I still do.
Anyway, I didn't really expect to fix this, but I was taking a look and I reaslised - although TS doesn't give us those definitions out of the box, we've actually already loaded them in. So it's not much work to cross-reference them.
So now it works! If you ask for the functions of http, it'll now include the defs for common. Hurrah!
describe-package
will read in the d.ts of a package and give a nicely formatted JSON description.But it doesn't do a good job of common functions. They're reported as "namespaces" with no actual content. I've always blamed this on the Typescript compiler and I think I still do.
Anyway, I didn't really expect to fix this, but I was taking a look and I reaslised - although TS doesn't give us those definitions out of the box, we've actually already loaded them in. So it's not much work to cross-reference them.
So now it works! If you ask for the functions of http, it'll now include the defs for common. Hurrah!