title: Remove fields from typescript interface object
body: <p>I am getting a json response and storing it in mongodb, however the fields that I don't need are also getting in to the database, is there anyway to strip the uneseccary fields?</p>
  
  <pre><code>interface Test{
      name:string
  };
  const temp :Test = JSON.parse('{ "name":"someName","age":20 }') as Test;
  console.log(temp);
  </code></pre>
  
  <p>output :</p>
  
  <pre><code>{ name: 'someName', age: 20 }
  </code></pre>