What's the best way to `@JsExport` a function that...
# javascript
t
What's the best way to
@JsExport
a function that takes a
Map
?
Copy code
@JsExport
interface Foo {
  fun bar(map: Map<String, String>)
}
b
Use either JsonObject from stdlib or ts Record from kotlinx
t
ReadonlyRecord<String, String>