Why can required fields be undefined as type? #3702
Answered
by
logaretm
Nikola-Milovic
asked this question in
Q&A
-
|
So if I have a schema like so the values of the submit will be Why is the type |
Beta Was this translation helpful? Give feedback.
Answered by
logaretm
Feb 20, 2022
Replies: 1 comment 2 replies
-
|
That is a question you should submit to const schema = object({
title: string().required().defined(),
description: string().required().defined()
});I believe the types will change with yup's |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Nikola-Milovic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is a question you should submit to
yupnot vee-validate. But you can fix that by adding.definedor.defaultto remove theundefinedtype possibility.I believe the types will change with yup's
1.0release.