Skip to content

Commit

Permalink
feat: support PropTypes.elementType (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored and danez committed Feb 25, 2019
1 parent 62af378 commit d08bffd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types.js
Expand Up @@ -28,7 +28,8 @@ export type PropTypeDescriptor = {
| 'objectOf'
| 'shape'
| 'exact'
| 'union',
| 'union'
| 'elementType',
value?: any,
raw?: string,
computed?: boolean,
Expand Down
1 change: 1 addition & 0 deletions src/utils/__tests__/getPropType-test.js
Expand Up @@ -33,6 +33,7 @@ describe('getPropType', () => {
'element',
'node',
'symbol',
'elementType',
];

simplePropTypes.forEach(type =>
Expand Down
1 change: 1 addition & 0 deletions src/utils/getPropType.js
Expand Up @@ -188,6 +188,7 @@ const simplePropTypes = [
'element',
'node',
'symbol',
'elementType',
];

const propTypes = {
Expand Down

0 comments on commit d08bffd

Please sign in to comment.