title: Remove properties from an object that are not declared in a type interface
body: <p>I want to remove all properties from an object which are not declared in a specific type interface.</p>
  
  <p>For example, let's assume that I have the following interface:</p>
  
  <pre><code>export interface CreateCustomerUserInput {
      fullname: string;
      email: string;
  }
  </code></pre>
  
  <p>And I have the following object:</p>
  
  <pre><code>let obj = {fullname: 'AAA', email: 'aa@aa.com', phone: '111', address: 'XXX'};
  </code></pre>
  
  <p>But I want to create a new object with only properties declared in the type interface.
  Here is the expected object:</p>
  
  <pre><code>let c = {fullname: 'AAA', email: 'aa@aa.com'}
  </code></pre>
  
  <p>Is there any good way to solve this in TypeScript?</p>