Introspection of JS lib can be very complex due to the dynamic edge of the JS language.
In the Typescript world, there are *.d.ts files used to provide types to existing libraries. As far as I can tell, most of these files are written manually.
At the moment, such a tool is not yet available.
source share