title: Shorter way to return propertype enum in typescript
body: <p>I have a function like this:</p>
  <pre><code>  public CustomerEditType(customer: Customer): CustomerEditType {
      if (customer.company) {
        if (customer.vatNumber) {
          return CustomerEditType.COMPANYVAT;
        } else {
          return CustomerEditType.COMPANYNOVAT;
        }
      } else {
        return CustomerEditType.PRIVATE;
      }
    }
  </code></pre>
  <p>The problem I have here is I don't know how to make this function shorter. Maybe an inline return statement?
  How do I make this function shorter?</p>