Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

A better way to work with processes in Deno.
Latest
function unreachable
import { unreachable } from "https://deno.land/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@0.224.0/assert/unreachable.ts";

unreachable(); // Throws

Returns

never