ankushg
06/03/2021, 2:52 AM// commonMain
interface HasFoo {
val foo: String
}
data class HasFooMobile(override val foo: String): HasFoo
// jsMain
external interface HasFooJs {
val foo: String
}
class HasFooJsWrapper(private val hasFooJs: HasFooJs): HasFoo {
override val foo = hasFooJs.foo
}
Would be nice to have some ability to declare an interface as external
in Common code and have the keyword ignored on non-JS platforms…rnett
06/03/2021, 5:20 AMexternal actual
? I don't have anything handy to try, but I would think it would work.