Skip to content

Commit

Permalink
PropTypes.oneOfType should take an array (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
TikiTDO authored and joshswan committed Nov 30, 2017
1 parent 2db0524 commit 206794a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,13 @@ Autolink.propTypes = {
truncate: PropTypes.number,
truncateChars: PropTypes.string,
twitter: PropTypes.bool,
url: PropTypes.oneOfType(
url: PropTypes.oneOfType([
PropTypes.bool,
PropTypes.shape({
schemeMatches: PropTypes.bool,
wwwMatches: PropTypes.bool,
tldMatches: PropTypes.bool,
}),
),
]),
webFallback: PropTypes.bool,
};

0 comments on commit 206794a

Please sign in to comment.