function which takes no arguments, isn't async with a callback, and isn't performing some kind of action. Were I encapsulating this in a class, I would do
val manifest: Json get() = delegate.getManifest()
to expose it as a property. This is an external interface though so I'm forced into
fun getManifest()
s
spand
02/27/2019, 1:53 PM
its not as nice but you can get your property and getter at the same time if you make it an extension property
spand
02/27/2019, 1:54 PM
ie.
val ExternalInterface.manifest : Manifest get() = asDynamic().manifest
j
jw
02/27/2019, 1:55 PM
Yeah I know. I was hoping that something like
val manifest: Json @JvmName("getManifest") get()
would just work
s
Svyatoslav Kuzmich [JB]
02/28/2019, 6:46 PM
Try
val manifest: Json @JsName("getManifest") get
j
jw
02/28/2019, 6:56 PM
ah!!! that indeed works. I naively was using the parenthesis on