issues
search
facebook
/
prop-types
Runtime type checking for React props and similar objects
MIT License
4.48k
stars
356
forks
source link
Fix oneOf when used with Symbols
#224
Closed
jimf
closed
5 years ago
jimf
commented
6 years ago
Fixes error due to an attempt to coerce a Symbol to a string
Improves formatting of the "expected" portion of the generated warning, outputting for example
["Symbol(A)","Symbol(B)"]
rather than
[null,null]
Fixes #10
["Symbol(A)","Symbol(B)"]
rather than[null,null]
Fixes #10