Replies: 1 comment 1 reply
-
We actually have some precedence for this, with https://github.com/varabyte/kobweb/tree/main/common/kobwebx-serialization-kotlinx used to generate Kotlinx serialization support for Kobweb workers (which require users register serialization logic to convert between app and worker) I'd be tempted to say we can probably even put such helper methods inside that module without needing to create a new one. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It might be beneficial to provide a fist-party module that adds convenience extensions on
HttpFetcher
for deserializing responses to typed values usingkotlinx.serialization
.window.http.get<MyType>(...)
, orwindow.http.get(MyType.serializer(), ...)
if the reified lookup mechanism isn't available in Kotlin/Js.Beta Was this translation helpful? Give feedback.
All reactions