Edoardo Luppi
12/20/2023, 4:56 PMpostMessage).
I've noticed that an interface like
@JsExport
public interface Report {
public val rdz: ReportElement?
...
}
will have the rdz field exposed as a function rdz, with an internal object property using an unstable name.
postMessage will erase all functions, so how am I supposed to access the field?andylamax
12/20/2023, 5:03 PMEdoardo Luppi
12/20/2023, 5:04 PMandylamax
12/20/2023, 5:05 PMEdoardo Luppi
12/20/2023, 5:07 PMandylamax
12/20/2023, 5:08 PMJson.encodeToString will transform the getter to a propperty
Json from kotlinx.serializationEdoardo Luppi
12/20/2023, 5:09 PMEdoardo Luppi
12/20/2023, 5:15 PMpostMessage.
I'll process it and post a simple JSON object.andylamax
12/20/2023, 5:22 PMEdoardo Luppi
12/20/2023, 5:23 PMandylamax
12/20/2023, 5:23 PMEdoardo Luppi
12/20/2023, 5:35 PMEdoardo Luppi
12/20/2023, 5:35 PM