this looks like a good use case for meta programming, I’m pretty sure you could generate the variant from the record type using @rescript/tools for example!
↧
this looks like a good use case for meta programming, I’m pretty sure you could generate the variant from the record type using @rescript/tools for example!