I have a property which can basically contain 4 possible strings.
At the moment I'm using a simple | however I need to reuse those types else where, however how do I create an interface for just those 4 values:
selectedState?: "" | "IN_PROGRESS" | "SUCCESS" | "ERROR"
I was hoping to do something like:
interface SelectedStates: "" | "IN_PROGRESS" | "SUCCESS" | "ERROR"
and then
selectedState?: SelectedStates
Any ideas appreciated.