Skip to content

Commit 206794a

Browse files
TikiTDOjoshswan
authored andcommitted
PropTypes.oneOfType should take an array (#23)
See: https://github.com/facebook/prop-types#usage
1 parent 2db0524 commit 206794a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,13 @@ Autolink.propTypes = {
256256
truncate: PropTypes.number,
257257
truncateChars: PropTypes.string,
258258
twitter: PropTypes.bool,
259-
url: PropTypes.oneOfType(
259+
url: PropTypes.oneOfType([
260260
PropTypes.bool,
261261
PropTypes.shape({
262262
schemeMatches: PropTypes.bool,
263263
wwwMatches: PropTypes.bool,
264264
tldMatches: PropTypes.bool,
265265
}),
266-
),
266+
]),
267267
webFallback: PropTypes.bool,
268268
};

0 commit comments

Comments
 (0)