How to get a list of values acceptable/defined by interface?
Example I have a local state defined as:
interface LocalState {
justifyContent: 'space-between' | 'center' | 'flex-start' | 'flex-end' | 'space-around' | 'space-evenly';
}
And I want to get an array of items which will contain
['space-between', 'center', 'flex-start', 'flex-end', 'space-around', 'space-evenly']
Is it possible to extract this information from TS type-system?(Or does it get stripped out while transpiling to Javascript)
If it is possible how?