I can't speak to your use case, but for past projects I've not only wanted to share types but actual logic. For instance, if you want instantaneous validation on the frontend, while applying the same logic on the backend with submitted data. In many instances that would be simple and maybe even serializable, but in my case I was working with architectural data that had extremely detailed logic for what was and was not valid.
CharlieDigital|28 days ago
Example with .NET: https://github.com/CharlieDigital/dn-kubb
Sammi|28 days ago