How are function types mapped to js? is `() -> ...
# javascript
a
How are function types mapped to js? is
() -> Unit
compatible to be exported?
s
Functions types should map to JS function types intuitively.
() -> Unit
is compatible and would be mapped to
() => void
. Doc at https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/-js-export/ describes exportable types in more detail.
👍 2