I didn't know about this behavior, but in what sense do you mean it is correct? I see why it doesn't work in TypeScript's type system, but you could safely narrow to string here, right?
4 likes 1 replies
?
I didn't know about this behavior, but in what sense do you mean it is correct? I see why it doesn't work in TypeScript's type system, but you could safely narrow to string here, right?
4 likes 1 replies