Automate JavaScript Interop in Dart
I've tried to make my implementation of .d.ts -> dart2js annotations converter.
This is possible way to automate the process.
Please, see https://github.com/denis-aes/DefinitelyTyped.dart
Introspecting JS lib can be really hard due to the dynamic face 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 those files are manually writen.
For now such a tool isn't yet available.