Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use parts of https://github.com/a14n/dart-js-wrapping? #70

Open
devoncarew opened this issue Oct 8, 2013 · 1 comment
Open

Use parts of https://github.com/a14n/dart-js-wrapping? #70

devoncarew opened this issue Oct 8, 2013 · 1 comment

Comments

@devoncarew
Copy link
Contributor

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:

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.

@kevmoo @financecoding @a14n

@adam-singer
Copy link
Member

@devoncarew should we migrate this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants