Comment Comment by ficklepickle TypeScript is nice here because you can specify the specific strings you accept in a union. Eg. `unit: 'AC'|'DC'` parent ficklepickle 2 years ago