Hey guys,
I just wonder what goes to default section of your switch statement or else part If – else – if ladder Statement . Is it the very last remaining option or an exception case besides the available options.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
I usually prefer placing an exception there. In typescript i often add a
assertUnreachable()
method there that returnsnever
. If an enum value goes unhandled, the compiler will give an error.