title: How do I define an onChange handler for React-Select in typescript
body: <p>I can't get the onchange function typing correct.  I created a handler function but typescript keeps complaining about type mismatch.</p>
  
  <p>My function:</p>
  
  <pre><code>private handleChange(options: Array&lt;{label: string, value: number}&gt;) {
  }
  </code></pre>
  
  <p>Typescript error:</p>
  
  <p><code>src/questionnaire-elements/AssessmentFactorSearch.tsx (43,9): Type '{ ref: "select"; name: string; backspaceToRemoveMessage: ""; value: { label: string; value: IAsse...' is not assignable to type 'IntrinsicAttributes &amp; IntrinsicClassAttributes&lt;Async&lt;OptionValues&gt;&gt; &amp; Readonly&lt;{ children?: React...'.
    Type '{ ref: "select"; name: string; backspaceToRemoveMessage: ""; value: { label: string; value: IAsse...' is not assignable to type 'Readonly&lt;ReactAsyncSelectProps&lt;OptionValues&gt;&gt;'.
      Types of property 'onChange' are incompatible.
        Type '(options: { label: string; value: number; }[]) =&gt; void' is not assignable to type 'OnChangeHandler&lt;OptionValues, Option&lt;OptionValues&gt; | Option&lt;OptionValues&gt;[]&gt; | undefined'.
          Type '(options: { label: string; value: number; }[]) =&gt; void' is not assignable to type 'OnChangeHandler&lt;OptionValues, Option&lt;OptionValues&gt; | Option&lt;OptionValues&gt;[]&gt;'. (2322)</code></p>
  
  <p>How do I type the onchange method?</p>