Comment Comment by andix And that's one of the features of typescript that really sucks. String union types work so much better. parent andix 3 years ago