Can someone explain to me this TypeScript error? The compiler already knows that the branch in the end never runs, so why does it still complain that it does not always return? Is this a bug or limitation of TypeScript? 🤔
3 likes 1 replies
?
Can someone explain to me this TypeScript error? The compiler already knows that the branch in the end never runs, so why does it still complain that it does not always return? Is this a bug or limitation of TypeScript? 🤔
3 likes 1 replies