Hi, I have scenario, where I need to expose classe...
# webassembly
g
Hi, I have scenario, where I need to expose classes for K/JS but it is not needed Kotlin/wasm. is it possible to omit @jsexport annotation for Kotlin/wasm only.
a
Only if you define the class as expect-class and copy the actual "implementations" of the class into all the platform source sets.
b
You can introduce expect annotation say
JsOnlyExport
And actaulize differently for JS and Wasm JS:
actual typealias JsOnlyExport = JsExport
Wasm:
actual annotation class JsOnlyExport
gratitude thank you 1
K 4
g
Sure, I'll try. thanks for reply 🙂