title: Typescript: Get Exclusive Members from Union Class Type
body: <p>How do I get the Exclusive Member from a Union Typescript?</p>
  <pre><code>selectedQueueItems: Array&lt; TestA | TestB &gt; = [];
  </code></pre>
  <p>TestA has a class member called Food, that TestB does not have. However most of the other class members are similar between each.</p>
  <p><strong>Receiving Error:</strong></p>
  <blockquote>
  <p>Property 'Food' does not exist on type 'TestA | TestB'.</p>
  </blockquote>
  <blockquote>
  <p>Property 'Food' does not exist on type 'TestB'</p>
  </blockquote>
  <p>Currently working with existing design in our code base.</p>