prettynice
prettynice copied to clipboard
Explicit translation layer for shared frontend/backend types?
Currently you can define Props in a component and prettynice will automatically generate Gren code to pass a matching type from the backend. Should there be a more general solution for sharing types between frontend/backend? For submitting forms, etc? Maybe shared/Types.gren or similar that the build step will automatically recognize and look for and/or generate codecs for?
Is there anything to learn or pull from Lamdera? It's open source now and the compiler generates codes like this. Take a look.