Dmitriy Tarasevich
07/10/2024, 5:39 PMfield_1
even though the typedefs generated have it accessible as field
...
In example
@JSExport
sealed class FooBar() {
abstract val foo: Int
data class Bar(override val foo: Int) : FooBar() { }
}
on the JS client, foo
is not available but foo_1
is.
Thoughts?turansky
07/10/2024, 8:32 PM@JsExport
sealed class FooBar() {
abstract val foo: Int
}
@JsExport
data class Bar(override val foo: Int) : FooBar() { }
Dmitriy Tarasevich
07/10/2024, 8:40 PMDmitriy Tarasevich
07/10/2024, 9:43 PMDmitriy Tarasevich
07/10/2024, 9:43 PMDmitriy Tarasevich
07/10/2024, 9:43 PMEdoardo Luppi
07/11/2024, 7:10 AMEdoardo Luppi
07/11/2024, 7:13 AMFooBar
class
//region block: post-declaration
defineProp(protoOf(FooBar), 'foo', function () {
return this.get_foo_18j5pf_k$();
});
Edoardo Luppi
07/11/2024, 7:16 AMtasks.withType<Kotlin2JsCompile> {
compilerOptions {
useEsClasses = true
}
}
turansky
07/11/2024, 7:17 AMtasks.withType<Kotlin2JsCompile> {
compilerOptions {
target = "es2015" // ES module + ES classes + coroutines on generators
}
}
Please 🙂Edoardo Luppi
07/11/2024, 7:19 AM