Open devcaeg opened 1 month ago
Thanks for bringing this up! I agree and will look into it, but it may take some time as other things have a higher priority for me right now.
@fabian-hiller
I just created a pull request, feel free to review it when you have time. Thank you very much!
The
Prettify
type is an internal type used byValibot
. It acts as a “trick” inTypeScript
to “unroll” the types, making them easier for the end user to understand. However, thePrettify
type can cause issues because it “decomposes” the types, potentially leading to uncommon errors inTypeScript
. Therefore, I propose that this type be declared in adeclare module 'valibot'
block. This would allow developers to override the type in their projects if, for example, they want to negate its effects.