appbaseio / appbaseio/reactivebase

Inconsistency between `types` and `propTypes`

Open
#217 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
18
Forks
2
PR merge metrics
No merged PRs in 30d

Description

In cases, when `PropTypes.oneOf` is used, the `type` specifies only a single type.
```
Component.propTypes = {
title: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.element
])
}
```
```
Component.types = {
title: TYPES.STRING
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.