Pavel Matusevich
11/28/2021, 12:19 AMfun getSelected(): Set<RowData>
fun getActive(): Set<RowData>
and then trying to access this set using for (selected in selection.getSelected()){..}
in browser it throws Uncaught TypeError: it.getSelected().iterator is not a function
.
By looking at Kotlin/JS documentation I see that Kotlin collections does not map to any specific class in JS ("Kotlin collections (List
, Set
, Map
, and so on) are not mapped to any specific JavaScript type."). So, my question: is it okay to publish mapping like that or is there a better way to do that mapping? (like custom Set class, or anything else...)Big Chungus
11/28/2021, 12:43 AMBig Chungus
11/28/2021, 12:43 AMturansky
11/28/2021, 1:24 AM@JsName("Set")
external class JsSet
...
Pavel Matusevich
11/28/2021, 11:04 AMturansky
11/28/2021, 11:54 AMturansky
11/28/2021, 9:21 PMlib.dom.d.ts
(and similar) from IDEA is fine as source