title: typescript interface require one of two properties to exist
body: <p>I'm trying to create an interface that could have </p>
  
  <pre><code>export interface MenuItem {
    title: string;
    component?: any;
    click?: any;
    icon: string;
  }
  </code></pre>
  
  <ol>
  <li>Is there a way to require <code>component</code> or <code>click</code> to be set</li>
  <li>Is there a way to require that both properties can't be set? </li>
  </ol>