You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following example regular typescript narrows the type of the value in the switch statement to "never" when having checked all cases exhaustively:
src/not-reached-narrow.ts:20:20 - error TS2345: Argument of type 'null | undefined' is not assignable to parameter of type 'never'.
Type 'undefined' is not assignable to type 'never'.
20 neverReached(source);
The text was updated successfully, but these errors were encountered:
In the following example regular typescript narrows the type of the value in the switch statement to "never" when having checked all cases exhaustively:
With tsgo however I get the following error:
The text was updated successfully, but these errors were encountered: