Felix
07/29/2024, 3:57 PMJsReadonlyMap
on the public interface of a JsExport
class? IDEA show the "Exported declaration uses non-exportable ...". I would assume that this type was created exactly for this interoperability purpose.turansky
07/29/2024, 6:54 PMReadonlyMap
2. Exported ReadonlyMap
from Kotlin/JS will be broken, because of export limitationsFelix
07/29/2024, 7:28 PMEdoardo Luppi
07/30/2024, 10:01 AMimport kotlin.js.collections.JsReadonlyMap
@OptIn(ExperimentalJsCollectionsApi::class)
interface I {
val map: JsReadonlyMap<String, String>
}
@JsExport
@OptIn(ExperimentalJsExport::class, ExperimentalJsCollectionsApi::class)
class C(override val map: JsReadonlyMap<String, String>) : I
Felix
07/30/2024, 1:45 PM@JsExport
class SomeClass (...){
val someProp: JsReadonlyMap<String, SomeExportableClass>
}
Edoardo Luppi
07/30/2024, 1:46 PM