Manually declare output type for a validation
Hello - I'm working on a library that emits types inferred from arktype validations.
I want the inferred output type to use a named type (which i also export), instead of the literal inferred value of that type.
So:
Given the following code
I get the following output (built with tsdown):
Which makes complete sense, but wondering if theres something like Drizzle ORM's.
I want the inferred output type to use a named type (which i also export), instead of the literal inferred value of that type.
So:
Given the following code
I get the following output (built with tsdown):
Which makes complete sense, but wondering if theres something like Drizzle ORM's.
.$type<Fruit> to get this behavior.