prettynice icon indicating copy to clipboard operation
prettynice copied to clipboard

Explicit translation layer for shared frontend/backend types?

Open blaix opened this issue 1 year ago • 0 comments

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.

blaix avatar Jan 01 '25 13:01 blaix