Description
Right now, we ship hand-crafted type declaration files for the JS interface. Since we added typescript now to type-check the JS codebase (#2611), we can probably also use it to generate type declaration files (details to be figured out). This would ensure that the manual declaration files don't diverge any more from our actual exports (which they do as tracked in #2606)