title: Type 'Dispatch<SetStateAction<any[]>>' is not assignable to type '(values?: string) => void'
body: <p>I'm very new to typescipt and trying to make a basic pin-input page. <a href="https://codesandbox.io/s/patient-meadow-eisq5?file=/src/App.tsx" rel="noreferrer">Sandbox link for my code </a>. Although it is working, I'm getting this error for onChange function at line 10:</p>
  <blockquote>
  <p>Type 'Dispatch&lt;SetStateAction&lt;any[]&gt;&gt;' is not assignable to type '(values?: string) =&gt; void'.
  Types of parameters 'value' and 'values' are incompatible.
  Type 'string' is not assignable to type 'SetStateAction&lt;any[]&gt;'.ts(2322)</p>
  </blockquote>
  <p>I'm importing <a href="https://www.npmjs.com/package/react-hook-pin-input" rel="noreferrer">react-hook-pin-input</a> and I'm unable to find any demos to use onChange in ts. Please help me re-write onChange such that valueE becomes the value that is being entered. Source for react-hook-pin-input can be found here - <a href="https://github.com/elevensky/react-hook-pin-input" rel="noreferrer">https://github.com/elevensky/react-hook-pin-input</a></p>