const abc = (str: string) => str
How do restrict string to specified value like 'a' and 'b' only?
I know it can be an enum but I want to make it one liner
const abc = (str: string) => str
How do restrict string to specified value like 'a' and 'b' only?
I know it can be an enum but I want to make it one liner