typescript compare string to enum key