Closed andywer closed 7 years ago
Yep, I think this is a good idea. Submit a PR! We can leave old name but remove it form the docs to keep it b/c.
Hey @andreypopp. I just stumbled upon a minor issue:
You can use sequence()
without specifying a type and syntactically this makes sense. But if it's now arrayOf()
is does not look correct if you omit the array item type.
Suggestion: I change sequence()
to arrayOf(any)
in the examples.
Hi @andreypopp!
I like the idea behind
validated
. I tend to compare it to React'sPropTypes
, so I just wondered why it's calledsequence
(which is also not a common term in JS land).An
arrayOf(person)
might be more intuitive.Cheers