code: function (srcText) {
          const name = getComponentName(srcText);
          console.log('Converting', name);
  
          let res = fixImports(srcText);
          res += '\n\n' + fixProps(srcText, name);
          res += '\n\n' + fixDefaultProps(srcText, name);
          if (srcText.indexOf('extends React.Component') === -1) {
              res += '\n\n' + fixFunctionalComponent(srcText, name);
          }
          else {
              console.log('detected stateful component, skipping');
          }
          res += '\n';
          return res;
      }
docs: Runs some regexs to extremely roughly convert a JS component to TS. You'll need to have the JS on hand to finish the conversion. Usage: node scripts/convertComponentToTS.js src/components/Alert