diff --git a/src/propTypes.js b/src/propTypes.js index 240b3b0..03aea88 100644 --- a/src/propTypes.js +++ b/src/propTypes.js @@ -3,6 +3,6 @@ const PropTypes = require("prop-types"); module.exports = { refType: PropTypes.oneOfType([ PropTypes.func, - PropTypes.shape({ current: PropTypes.elementType }) + PropTypes.shape({ current: PropTypes.object }) ]) };