Hello, quick question in JS `Array is mapped to Ar...
# multiplatform
a
Hello, quick question in JS
Array is mapped to Array
but in Swift
List is mapped to Array
. What I should use in my kmp library? I need to return a an Array/List of Objects.
l
A List
(in Kotlin terms)
a
The problem with List is that it is not properly transcripted to JS 🙁
l
You can add a JS specific façade if you need to expose an API for JS consumers
I think @andylamax might have better answers to that
e
👍 2
👀 1
a
We also worked on https://github.com/aSoft-Ltd/kollections to mitigate this exact problem
👍 2
a
thanks for the answers it looks like it will works out of box with the 2.0.0 version then 🎉!
🎉 1