István Mészáros
11/25/2023, 10:01 AMtasks.withType<KotlinJsCompile>().configureEach {
kotlinOptions {
useEsClasses = true
}
}
In the generated typescript definitions we see:
static fromString(value: string, $box: Nullable<BigDecimal>): BigDecimal;
The corresponding Kotlin source is:
@JsName("fromString")
actual constructor(value: String) : this(BigNumber(value), scaleOf(value))
Why the argument $box
is added to the generated TS code? It's not there if ES6 classes are disabled. We use Kotlin 1.9.21
Thanks in advance!Artem Kobzar
11/27/2023, 11:41 AMIstván Mészáros
11/27/2023, 12:17 PMEdoardo Luppi
11/27/2023, 12:44 PMEdoardo Luppi
11/27/2023, 12:52 PM