Closed wojtekmaj closed 5 years ago
Adds a different warning message for multiple arguments supplied to oneOf. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]) and this should help developers identifying the error.
oneOf(x, y, z)
oneOf([x, y, z])
Thanks for reviewing @ljharb. Force pushed to squash and change the unit tests to remove "instance of" from the strings you've changed.
Adds a different warning message for multiple arguments supplied to oneOf. A common mistake is to write
oneOf(x, y, z)
instead ofoneOf([x, y, z])
and this should help developers identifying the error.