title: How do I restrict enum string values in typescript
body: <p>I have type with possible value of action</p>
  <pre><code>type PersistentAction = 'park' | 'retry' | 'skip' | 'stop'
  </code></pre>
  <p>Then I want to define enum with actions</p>
  <pre><code>enum persistentActions {
    PARK = 'park' ,
    RETRY = 'retry', 
    SKIP = 'skip',
    STOP = 'stop',
  }
  </code></pre>
  <p>How to restrict enum values to <code>PersistentAction</code>?
  Maybe enum is wrong type for it?</p>