cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.45k stars 159 forks source link

java: new String(a bytes[], b charset) => ts: new String(a,b), error: Expected 0-1 arguments, but got 2. #711

Open lalalic opened 2 years ago

lalalic commented 2 years ago

how to workaround this

lalalic commented 2 years ago

this can make typescript compile

declare interface StringConstructor{
    new(value?: any, charset?:any): String;
}

but how to override encoding?

lgrignon commented 2 years ago

Hello, which JSweet version? Are you using J4TS?