dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.21k stars 1.57k forks source link

Customers would like to generate JS interop bindings #33715

Open matanlurey opened 6 years ago

matanlurey commented 6 years ago

(Stub, we can fill in the details as they become relevant)

The popular ones right now are TypeScript definition files and Closure externs, I believe.

zoechi commented 6 years ago

There was some work done a while ago https://github.com/dart-lang/sdk/issues/24874#issuecomment-253935419

matanlurey commented 6 years ago

Yes, that is a very stale tool. This request is for an updated tool (that is tested on CI, etc).

robbecker-wf commented 5 years ago

Are people still interested in such a tool? Workiva is hitting a good deal of pain around JS interop and are considering writing something ourselves.

jacobsimionato commented 1 year ago

I'm curious if there have been any discussion around this recently? I suspect this could be very useful for Google apps seeing as nearly all the JS interop that needs to be done is now actually with Typescript. It seems like Typescript has only increased in usage in the 3 years since the last comment, and I understand there is work being done to revisit Dart's JS interop story.

parlough commented 1 year ago

If you're interested, @jodinathan has been exploring this space recently with some of the new interop functionality: https://pub.dev/packages/typings