title: How to use PropTypes with Typescript in React
body: <p>I am trying to use PropTypes with Typescript but getting errors:</p>
  <p>Without typescript I was able to use:</p>
  <pre><code>class TodoFilterItem extends Component {
    constructor (props) {
      super(props);
  </code></pre>
  <p>and then at the bottom</p>
  <pre><code>TodoFilterItem.propTypes = {
    name: PropTypes.string,
    filter: PropTypes.string,
    filterTodos: PropTypes.any
  }
  </code></pre>
  <p>and that worked for just having PropTypes (i.e. no typescript).</p>
  <p>However when I add Typescript and I have</p>
  <pre><code>class TodoFilterItem extends Component&lt;ITodoFilterItem&gt; {
    constructor (props:ITodoFilterItem) {
      super(props);
      ...
  </code></pre>
  <p>I have props as an interface like this:</p>
  <pre><code>interface ITodoFilterItem  {
    filter: string,
    name: string,
    filterTodos: any
  }
  </code></pre>
  <p>and I use the same propTypes:</p>
  <pre><code>TodoFilterItem.propTypes = {
    filter: PropTypes.string,
    name: PropTypes.string,
    filterTodos: PropTypes.any
  }
  </code></pre>
  <p>I get an error</p>
  <pre><code>Property 'propTypes' does not exist on type 'typeof import(&quot;/my_adrs/node_modules/@types/prop-types/index&quot;)'.  
  </code></pre>
  <p>How to address this and be able to use PropTypes with Typescript in React ?</p>