title: Can I do typescript props validation for a component wrapped inside a HOC?
body: <p>I am writing my components with a React HOC but it is giving error while using typescript for validating props.
  the error is as follow</p>
  
  <blockquote>
    <p>Type '{ type: string; imgUrl: any; vidUrl: any; }' is not assignable
    to type 'IntrinsicAttributes &amp; Pick &amp; {
    children?: ReactNode;}'.</p>
  </blockquote>
  
  <p>what my components look like (example):</p>
  
  <pre><code>type Props = {
  type: string;
  imgUrl: any;
  vidUrl: any;
  }
  const Component = ({type,imgUrl,vidUrl}:Props)=&gt; (
  &lt;div&gt;.....
  .....
  &lt;/div&gt;
  )
  export defualt withTranslation('common')(Component);
  </code></pre>