title: How to determine from 2 types either 1 or 2
body: <p>I am new to typescript.</p>
  
  <p>I have 2 type.</p>
  
  <pre><code>type Point = {
      x: number;
      y: number;
  };
  
  type Label = {
      name: string;
  };
  </code></pre>
  
  <p>I have Variable Duko.</p>
  
  <pre><code>let Duko: ? = {...};
  </code></pre>
  
  <p>How to say that Duko is equal to Label type or Point.</p>