-
Notifications
You must be signed in to change notification settings - Fork 24
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
Depend directly on Elemental2 #77
Comments
Well, since elemental2 preview is out, probably the next steps in the project would be get ride of temporary implementations in the project and use those. I have not taken a look to elemental2 but probably it does not have these problems. |
@manolo Thanks for the steer. I will take a look at what is on offer there. If nothing is available perhaps keeping the name |
@manolo - Nice! There is I used the following link to investigate: https://oss.sonatype.org/service/local/repositories/google-releases/content/com/google/gwt/elemental2-experimental/16-06-30/elemental2-experimental-16-06-30.jar Will see if I can try and get it working with:
|
Good to know. Thanks for reporting. |
Thanks again for setting me in the right direction. |
Committing to branch https://github.com/dmg46664/gwt-api-generator/tree/elemental2. |
Are you sure that it is not enough to depend on jsinterop:base? using JsArrayLike for example? |
@ibaca - No, I'm not sure and that's probably a better idea :-) I was thrown a little by the name |
@ibaca - My test was to use the Obviously I haven't tested it with |
This seems to be solved! 👏 |
My problem is that because the existing
JsArray
is defined asJsArray<T extends JavaScriptObject> extends JavaScriptObject
, it is enforcing too harsh a restriction the items stored in the array. I don't want to define my class as extendingJavaScriptObject
as this is a deprecated API and would prefer my@JsType
annotated classes not to have all the restrictions imposed by the compiler.I propose creating a
JsArrayNative
type that is included in this generator project which would work as an expected javascript array without any of the restrictions ofJsArray
. I didn't want to just go ahead and create this and submit a pull request if this is not the preferred approach of dealing with this. Obviously this would be a breaking API change to the generator.What are your thoughts?
The text was updated successfully, but these errors were encountered: