OpenFn / kit

The bits & pieces that make OpenFn work. (diagrammer, cli, compiler, runtime, runtime manager, logger, etc.)
8 stars 12 forks source link

describe-package: include common functions #724

Closed josephjclark closed 5 days ago

josephjclark commented 6 days ago

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!