So, I've got:
interface Foo {
type: FooType;
}
Which one is better to be used as FooType here:
Type alias?
type FooType = 'BAR' | 'BAZ';
Or string-based enum?
enum FooType {
BAR = 'BAR',
BAZ = 'BAZ'
}
What are the pros and cons of the two?