Skip to content

Commit d0fcb2a

Browse files
committed
Add support for newly introduced PropTypes "symbol" (#123)
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".
1 parent c001dbe commit d0fcb2a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/utils/__tests__/getPropType-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ describe('getPropType', () => {
3232
'any',
3333
'element',
3434
'node',
35+
'symbol',
3536
];
3637

3738
simplePropTypes.forEach(

src/utils/getPropType.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ var simplePropTypes = {
108108
any: 1,
109109
element: 1,
110110
node: 1,
111+
symbol: 1,
111112
};
112113

113114
var propTypes = {

0 commit comments

Comments
 (0)