Aleksandar Milojević
05/20/2021, 2:34 PM@JsExport
abstract class SampleClass(id: Int, name: String) {
var id: Int? = id
var name: String? = name
@JsExport
abstract fun description(text: String): String
}
error after build is ........ @JsExport is only allowed on files and top-level declarations
If I remove @JsExport from abstract function, it will not be exported in JS.
How to solve this ?