Type Inference Issue with Utility Function for Case Conversion in Schema Properties
im adding a helper utility to the end of some of my schema properties to convert snake case to pascal case, however its just dawned on me that by doing so, typescript looses its ability to infer the type? The utility is just abstracting away the Schema.fromKey property. Details in the playground, you can see on hover between the two Types with and without the utility, one is able to infer via the