title: How to retrieve property names for all properties in a class in typescript excluding methods
body: <p>I am trying to make my code as reactive as possible and need render my view based on the properties of a class, How do I retrieve the property names only form a class excluding methods etc.</p>
  
  <p>for example.</p>
  
  <pre><code>export class Customer { 
      customerNumber: string; 
      name: string; 
      salesContact: string; 
      salesContactEmailAddress: string; 
      salesContactNumber: string; 
      execContact: string; 
      constructor(data?: any) {
          ...
      }
  
      toJSON() {
          ...
      }
  
      clone() {
          ...
      }
  }
  </code></pre>
  
  <p>I need it to give me something the returned to be an Array of strings like this</p>
  
  <pre><code>fields: string[] = ["customerNumber", "name", "salesContact", "salesContactEmailAddress", "salesContactNumber", "execContact"];
  </code></pre>