Typescript union types
label?: 'purple' | 'blue' | 'green' | 'yellow' | 'red' | 'gray';
apparently, these give better intellisense in your IDE. but, better than what, enums? yet to look into it 😬
label?: 'purple' | 'blue' | 'green' | 'yellow' | 'red' | 'gray';
apparently, these give better intellisense in your IDE. but, better than what, enums? yet to look into it 😬