Join Slack
Powered by
Record`i am trying to write a binding for a typesc...
# javascript
n
Nikky
06/08/2021, 9:05 PM
Record`i am trying to write a binding for a typescript function that takes a
Record<String, Any>
, it works when i pass it a think like so :
Copy code
js("{name: \"Anna\"}")
but i would really like to call it with
mapOf()
or similar any idea how i can achieve that ?
d
diesieben07
06/08/2021, 9:07 PM
Take a look at
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/json.html
❤️ 1
t
turansky
06/08/2021, 9:55 PM
https://github.com/JetBrains/kotlin-wrappers/blob/master/kotlin-extensions/src/main/kotlin/kotlinext/js/Record.kt
2
Views
Open in Slack
Previous
Next