title: using spread operator in typescript
body: <p>I want to write a function which returns me a component wrapped up in another. The function I'm trying to write is like below in JavaScript.</p>
  
  <pre><code>function GetGroup({ name, text, isRequired, ...props }) 
  </code></pre>
  
  <p>Here, <code>name</code>, <code>text</code>, and <code>isRequired</code> is obtained from the passed arguments and others are sent to another component as <code>props</code>. </p>
  
  <p>How to write it in TypeScript?</p>