Module

x/proc/tests/deps/asserts.ts>unreachable

A better way to work with processes in Deno.
Latest
function unreachable
import { unreachable } from "https://dotland.deno.dev/x/proc@0.21.9/tests/deps/asserts.ts";

Use this to assert unreachable code.

Examples

Example 1

import { unreachable } from "https://deno.land/std@$STD_VERSION/assert/unreachable.ts";

unreachable(); // Throws

Returns

never