import { unreachable } from "https://deno.land/std@0.222.0/assert/unreachable.ts";
Use this to assert unreachable code.
Examples
Example 1
Example 1
import { unreachable } from "https://deno.land/std@0.222.0/assert/unreachable.ts";
unreachable(); // Throws