Exclude property from type : <p>I'd like to exclude a single property from the type. How can I do that?</p>

<p>For example I have</p>

<pre><code>interface XYZ {
  x: number;
  y: number;
  z: number;
}
</code></pre>

<p>And I want to exclude property <code>z</code> to get</p>

<pre><code>type XY = { x: number, y: number };
</code></pre>
