title: How to rename a variable coming into a Function in Typescript?
body: <p>Trying to rename this variable: <code>assetPayoutType</code> to just <code>payType</code>, however because I'm working in TypeScript there is a problem. TypeScript thinks there is a type called <code>payType</code>.</p>
  
  <pre><code>const { title, assetPayoutType } = this.props;
  
  mapDailyAssets(assetPayoutType: string)
  </code></pre>
  
  <p>IE: This won't work:</p>
  
  <pre><code>mapDailyAssets(assetPayoutType: payType: string)
  </code></pre>
  
  <hr>
  
  <p>I searched on StackOverflow and found two answers that did not answer this question.</p>
  
  <p><strong>Answer describes a non-typescript / regular Javascript simple rename:</strong></p>
  
  <p><a href="https://stackoverflow.com/questions/48318640/renaming-remaining-properties-variable-when-object-destructuring-in-typescript">Renaming remaining properties variable when object destructuring in TypeScript</a></p>
  
  <p><strong>This answer is about VSCode refactoring:</strong></p>
  
  <p><a href="https://stackoverflow.com/questions/12699643/typescript-rename-variable?rq=1">TypeScript rename variable</a></p>