title: Typescript type of input parameter formik.error and formik.touched (prime react + formik)
body: <p>I am using PrimeReact with Typescript and now I have to use Formik as form validator.
  PrimeReact(v7) Formik documentation: <a href="https://www.primefaces.org/primereact-v7/#/formik" rel="nofollow noreferrer">https://www.primefaces.org/primereact-v7/#/formik</a>
  and there are no changes when you switch the tab to TS source.
  I have problem with part:</p>
  <pre><code>const isFormFieldValid = (name) =&gt; !!(formik.touched[name] &amp;&amp; formik.errors[name]);
  const getFormErrorMessage = (name) =&gt; {
      return isFormFieldValid(name) &amp;&amp; &lt;small className=&quot;p-error&quot;&gt;{formik.errors[name]}&lt;/small&gt;;
  };
  </code></pre>
  <p>I cannot solve the &quot;name&quot; type. I tried for a :string, FormikTouched, any, FormikError...
  When I try string as type of parameter my IDE say:</p>
  <blockquote>
  <p>TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'FormikTouched&lt;{ name: string; }&gt;'.   No index signature with a parameter of type 'string' was found on type 'FormikTouched&lt;{ name: string; }&gt;'.</p>
  </blockquote>
  <p>Could someone help me with this please?</p>