Hello,
Can someone tell me why we can’t export value classes to js? I can’t find any documentation on this.
I’m using kotlin multiplatform in my project with kotlin 1.8 and the new IR compiler.
If I annotate a value class, that is part of the commonMain with ‘@JsExport’ I receive this error:
“Declaration of such kind (value class) can’t be exported to JS”
@JvmInline
@JsExport
public value class MyValue(private val value: Long)