title: Processing table rows in Typescript
body: <p>I have been trying to convert a JavaScript web form to Typescript, and have been unable to work out how to convert statements involving table rows, such as the following:</p>
  
  <pre><code>let body = document.getElementById("selectStackBody");
  
  let rowCount = body.rows.length;
  
  let row = body.insertRow(rowCount);
  
  body.deleteRow(i);
  </code></pre>
  
  <p>I can see how to get the body by doing the following:</p>
  
  <pre><code>let body = &lt;HTMLBodyElement&gt;document.getElementById("selectStackBody");
  </code></pre>
  
  <p>but I can't see how to get the right syntax for the rows.</p>