Type seems to be undefined for .matches() errors. Shouldn't be due to any casting issues as I checked the .catch(error) contents as any and typed.
ValidationError
errors: ["zipcode must match the following: "/^[0-9]{5}$/""]
inner: []
message: "zipcode must match the following: "/^[0-9]{5}$/""
name: "ValidationError"
params: {path: "zipcode", value: "", originalValue: "", label: undefined, regex: /^[0-9]{5}$/}
path: "zipcode"
type: undefined
value: ""
stack: "..."
__proto__: Error
I'm using "typescript": "^3.4.5" and "yup": "^0.27.0"
up
This is fixed in master, but hasn't been released (https://github.com/jquense/yup/commit/7e9439597e6c37a08fcdf976c6dfef5b644a2ef7). This would be really useful - any plans on doing a release soon @jquense?
Any news on a release date for this?
@astroash new release (0.28) was 25 days ago.
Most helpful comment
This is fixed in master, but hasn't been released (https://github.com/jquense/yup/commit/7e9439597e6c37a08fcdf976c6dfef5b644a2ef7). This would be really useful - any plans on doing a release soon @jquense?