• Indicates the unreachable code path. Calling this throws an error immediately, so this function should be called only if your application data is not consistent.

    Examples

    import { absurd } from "./func.ts";
    import { assertThrows } from "../deps.ts";

    assertThrows(() => {
    absurd<number>();
    throw new Error("this line must not be run");
    }, "PANIC: absurd must not be called");

    Type Parameters

    • T

    Returns T

Generated using TypeDoc