title: Remove entry from enum typescript
body: <p>I have an enum</p>
  <pre><code>export enum FloorTypeEnum {
    ENGINEERED_HARDWOOD = 'engineered_hardwood',
    SOLID_HARDWOOD = 'solid_hardwood',
    LAMINATE = 'laminate',
    LVT_VINYL = 'vinyl',
    CARPET = 'carpet',
    RUG = 'rug',
    CERAMIC = 'ceramic',
    CONCRETE = 'concrete',
    EPOXY = 'epoxy',
    FLOOR = 'floor', // deprecated value for backward compatibility
  }
  </code></pre>
  <p>So at one place, I want to use this enum but remove the deprecated value (<code>Floor</code>).
  Is there any way we can do?</p>
  <p>I have tried below</p>
  <pre><code>export type NewFloorTypeEnum = { 
      [key in Exclude&lt;FloorTypeEnum , FloorTypeEnum .Floor&gt; ]?: string
   };
  </code></pre>
  <p>I'm also maintaining an legacy enum</p>
  <pre><code>export enum LegacyFloorTypeEnum {
   FLOOR = 'floor'
  }
  </code></pre>
  <p>But I'm confused on how to use that type. I want to use the key and value of the enum and return to frontend.
  Ultimate requirement is to get an enum which is equivalent to <code>FloorTypeEnum - LegacyFloorTypeEnum</code>. I don't want to create a new enum for new floor values.</p>
  <p>Thanks</p>