Skip to content

Commit

Permalink
Add support for newly introduced PropTypes "symbol" (#123)
Browse files Browse the repository at this point in the history
React has introduced a new primitive PropType "symbol".
facebook/react#6377
This change adds support for that propType so that it is not reported
as "custom".
  • Loading branch information
ZauberNerd authored and fkling committed Sep 27, 2016
1 parent 53f012d commit 52b3919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/__tests__/getPropType-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ describe('getPropType', () => {
'any',
'element',
'node',
'symbol',
];

simplePropTypes.forEach(
Expand Down
1 change: 1 addition & 0 deletions src/utils/getPropType.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ var simplePropTypes = {
any: 1,
element: 1,
node: 1,
symbol: 1,
};

var propTypes = {
Expand Down

0 comments on commit 52b3919

Please sign in to comment.