title: ReactJS component PropTypes - specify a function type with a set number parameters
body: <p>I am specifying a required function proptype in a react (version 0.13.3) component...</p>
  
  <pre><code>var MyComponent = React.createClass({
      propTypes : {
          onClick : React.PropTypes.func.isRequired
      },
  
      handleClick(event) {
          this.props.onClick(event, clickCallback);
      },
  
      clickCallback() {
          console.log("foo");
      },
  
      render() {
          return &lt;div onClick={this.handleClick}&gt;&lt;/div&gt;
      }
  });
  
  export default MyComponent;
  </code></pre>
  
  <p>As you can see my onClick prop not only needs to be a function but needs to accept 2 arguments. is there any way to specify this using React PropTypes?</p>
  
  <p>I have read the <a href="https://facebook.github.io/react/docs/reusable-components.html" rel="noreferrer">React docs entry on re-usable components</a> and there seems to be only a way to define the shape of an object type but not a function type.</p>