Use this to assert unreachable code.
Optional
24.7.0
import { unreachable } from "assert";unreachable(); // Throws Copy
import { unreachable } from "assert";unreachable(); // Throws
Use this to assert unreachable code.