https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Antoine Barrault

02/21/2024, 3:38 PM
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

louiscad

02/21/2024, 7:10 PM
A List
(in Kotlin terms)
a

Antoine Barrault

02/21/2024, 7:29 PM
The problem with List is that it is not properly transcripted to JS 🙁
l

louiscad

02/21/2024, 7:35 PM
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

ephemient

02/21/2024, 7:51 PM
👍 2
👀 1
a

andylamax

02/21/2024, 8:55 PM
We also worked on https://github.com/aSoft-Ltd/kollections to mitigate this exact problem
👍 2
a

Antoine Barrault

02/22/2024, 9:21 AM
thanks for the answers it looks like it will works out of box with the 2.0.0 version then 🎉!
🎉 1