Converting TypeScript Types to Schema for Effect and Data Parsing
I've got a question that I was debating posting in schema, but could also be in dev-tools. I'm working on a website that retrieves data from a CMS. I've been debating wrapping the retrieval with Effect, but there's a non-automated error-prone step. The CMS will generate typescript types for the various things in the CMS, but I am giving serious consideration using Effect as wrapper for better error handling, and using the Data parsing to validate. I need a method of going from Typescript types to Schema. This is a code-generation thing, not a run-time or compile-time thing, so it feels like a missing (to me) tool. Is this already a solved problem?