Convert jsx to tsx?
<p>I have a library of React components with defined proptypes and am considering switching to Typescript. Is there any tool that will help port the code? Here is an example set of props for a simple component:</p>

<pre><code>  static propTypes = {
    active: PropTypes.bool,
    children: PropTypes.node,
    disabled: PropTypes.bool,
    icon: Icon.propTypes.kind,
    tabIndex: PropTypes.number
  };
</code></pre>



<p>I'm imagining a tool that would convert this to something like:</p>

<pre class="lang-js prettyprint-override"><code>interface IButtonProps {
    active: boolean,
    children: node,
    disabled: boolean,
    icon: Icon,
    tabIndex: number
}
</code></pre>



<p>Not too hard to write, but it would be nice if it already existed.</p>