jsinterop-generator icon indicating copy to clipboard operation
jsinterop-generator copied to clipboard

Generates Java annotated with JsInterop from JavaScript extern sources

Results 20 jsinterop-generator issues
Sort by recently updated
recently updated
newest added

A specific example of this is `elemental2.dom.CustomEventInit`, which at least as of elemental2 1.1.0 is generic on `T`, but the factory method is raw: ``` @JsType(isNative = true, namespace =...

Hi, Can't build the generator on my Windows10 platform. Can you provide a link to download the generator ? Thanks

I'm experimenting with taking [Closure-annotated](https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler) JS (both hand-written and generated from TypeScript via [tsickle](https://github.com/angular/tsickle/)). I was surprised to discover that when the generator runs, it only emits jsinterop types that...

enhancement

Steps to repro - use an externs file with an enum that is referenced by a union type. Roughly: ``` /** * @enum {number} */ foo.bar.SomeEnum = { ONE: 0,...

(Discovered while testing #46) Given this JS, the expected behavior presently is that `_STATIC` will be appended to the `static` version since these would otherwise collide. Instead, we see a...

Given two members on a class, one static and one instance, one will be generated with a `_STATIC` suffix. That is, ``` Foo.noArgMethod = function() {}; Foo.prototype.noArgMethod = function() {};...

Example JS, as put in the externs/modules/modules.js file: ``` /** * @typedef {(string|number|boolean)} */ baz.structural; ``` Results in this stack trace: ``` Exception in thread "main" java.lang.UnsupportedOperationException at com.google.javascript.rhino.jstype.Property.getScope(Property.java:185) at...

Technically I did get this to work, but it seems awkward, and so I am probably using jsinterop-generator or bazel wrong, or both. I have a new git repo of...

Hello, We are working on providing to the GWT community Java bindings (Java source code) to many standard Javascript libraries: see https://github.com/didier-durand/JSClosure2Interop This work is based on this JSInterop Generator...

As part of an attempt to whittle down the remaining errors in `google/elemental2` builds I tried to define the standardized `Document.prototype.write` in an extern accessible via Elemental2. The extern looks...