You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alexandre Ardhuin has a package to help automate exposing a JS library in Dart. You write a Dart interface that mirrors the JS API. He has a tool which parses that and generates an equivalent API which uses dart:js for interop.
He's created several utility classes which closely mirror some of our objects. From Alexandre:
The most important class is TypedJsObject which look really like your ChromeObject . There are some other similarities between my IsEnum and your ChromeEnum . You can also be interested by TypedJsArray that give you a Dart adapter to handle jsArray.
If his library gets traction, we could consider replacing our ChromeObject* classes with his implementations.
Alexandre Ardhuin has a package to help automate exposing a JS library in Dart. You write a Dart interface that mirrors the JS API. He has a tool which parses that and generates an equivalent API which uses dart:js for interop.
https://github.com/a14n/dart-js-wrapping
He's created several utility classes which closely mirror some of our objects. From Alexandre:
If his library gets traction, we could consider replacing our ChromeObject* classes with his implementations.
@kevmoo @financecoding @a14n
The text was updated successfully, but these errors were encountered: