-
Declarations are only partially generated while using module mode. The package tree of directories is generated with a module.d.ts in each of those directories BUT the root module.d.ts is missing.
Ex:…
-
Normally JSweet automatically adds a `this` target when calling a method defined on the current class... however, it does not work when the method has generics and defines it own generics. For example…
-
following
``` java
package org.ssatguru.babylonjs;
import static jsweet.dom.Globals.console;
public class CodeSnippet {
public static void main(String args[]){
int i =1;
if (i==1)…
-
It would be great for existing implementations/libraries (even though this is not the main purpose of JSweet) which cannot be structurally changed, to have the option of mapping diffrent method overlo…
-
private constructors raise an error with JSweet, I think it would be better to permit it and delete it at transpilation time, so we could enjoy the private constructor feature at least in our IDE.
-
[I report here a question from Satguru for sharing with the community]
Not sure how to use the window.setTimeout() function.
Jsweet defines it as
native public double setTimeout(Object handler, Obj…
-
The following code does not pass TSC:
```
package source.generics;
import java.util.function.Consumer;
import jsweet.lang.Interface;
public class GenericObjectStructure {
void m(MyInterface i, …
-
I run `mvn generate-sources` and get the following error
```
[java] 2015-11-19 20:28:51.051 ERROR ProcessUtil:163 - Cannot run program "tsc" (in directory "/tmp/jsweet-examples/.ts"): error=2, No…
-
The Java String's `length` method should be transpiled to the JS `length` property.
-
When compiling a simple Java class such as:
```
public class Foo {
...
}
```
The generated typescript is either (depending on whether the `module` option was turned on or not):
module.ts:
```
class…
ghost updated
8 years ago