I have a project that was pretty heavily invested in using ArkType for my validation, and with 2.0 coming out as stable i figured I'd start a branch and see if anything broke.
While there might be other breaking changes, apparently using the
email
email
magic word is breaking. For example
export const emailValidator = type('email');
export const emailValidator = type('email');
Gives me the RSoD with the error
Argument of type '"email"' is not assignable to parameter of type '"'email' is unresolvable "'.ts(2345)
Argument of type '"email"' is not assignable to parameter of type '"'email' is unresolvable "'.ts(2345)