krtko
03/15/2018, 11:31 PMexpect class Json {
fun getInt(id: String): Int
But with JS, the native Json class is only an interface so implementing it like:
actual class Json: kotlin.js.Json {
actual fun getInt(id: String): Int {
return this[id] as? Int ?: 0
}
Does not work. Any suggestions?spand
03/16/2018, 8:26 AMkrtko
03/16/2018, 9:02 AMgildor
03/16/2018, 10:37 AMkrtko
03/16/2018, 9:33 PMgildor
03/18/2018, 4:31 AMkrtko
03/19/2018, 1:12 AMgildor
03/19/2018, 7:48 AM