I usually prefer placing an exception there. In typescript i often add a assertUnreachable() method there that returns never. If an enum value goes unhandled, the compiler will give an error.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.