Closed joshalling closed 5 years ago
Adds data object to returned error in type checker so that the expected types can be accessed from within oneOfType check. Also, updates the tests slightly.
Fixes #9. Fixes https://github.com/facebook/react/issues/1919.
❤️
Adds data object to returned error in type checker so that the expected types can be accessed from within oneOfType check. Also, updates the tests slightly.
Fixes #9. Fixes https://github.com/facebook/react/issues/1919.