I have type with possible value of action
type PersistentAction = 'park' | 'retry' | 'skip' | 'stop'
Then I want to define enum with actions
enum persistentActions {
PARK = 'park' ,
RETRY = 'retry',
SKIP = 'skip',
STOP = 'stop',
}
How to restrict enum values to PersistentAction?
Maybe enum is wrong type for it?