Wait hold on, #GleamLang supports compiling to JavaScript?! Where can I learn more about this?
absolutely! I really liked fullstack #purescript because it could have done this: https://github.com/thoughtflare/purescript-endpoints-express/blob/master/example/src/EndpointExample/Model.purs#L13
If you roam around other files, you'll see that `Order` is shared between the client and server. It has a bit of an Argonaut bolierplate, but it's kinda ok.
I think this repo is certainly something to check out, and in general, reaching out to @FrigoEU on Github would be a nice idea to help with the design.