Skip to content

Commit

Permalink
Add support for newly introduced PropTypes "symbol"
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 committed Sep 5, 2016
1 parent d65bfc4 commit f3206b5
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 f3206b5

Please sign in to comment.